Re: How to read encrypted PKCS#8 format key file

2022-11-23 Thread Viktor Dukhovni
On Thu, Nov 24, 2022 at 09:48:42AM +0530, Satyam Mehrotra wrote: > I have encrypted pkcs#8 key file . Is there any openssl command buy which I > can view the algorithm used to encrypt it ( i mean aes or des3 ) Removing blank lines and passing to "asn1parse" you get: $ opens

How to read encrypted PKCS#8 format key file

2022-11-23 Thread Satyam Mehrotra
Hi , I have encrypted pkcs#8 key file . Is there any openssl command buy which I can view the algorithm used to encrypt it ( i mean aes or des3 ) Appreciate for anyone's quick help :) -BEGIN ENCRYPTED PRIVATE KEY- MIIFFjBIBgkqhkiG9w0BBQ0wOzAjBgkqhkiG9w0BBQwwFgQQVL5oYwC9daK

Re: RSA private key file created with Windows10

2022-10-05 Thread Tomas Mraz
> > > Tomas Mraz, OpenSSL > > > > On Wed, 2022-10-05 at 15:00 +0900, Imazu Setsuo wrote: > > > Hello. > > > > > > When I read the RSA private key file created with the ssh-keygen > > > command that comes with Windows 10 with the PEM_read_Pr

Re: RSA private key file created with Windows10

2022-10-05 Thread Imazu Setsuo
05 at 15:00 +0900, Imazu Setsuo wrote: Hello. When I read the RSA private key file created with the ssh-keygen command that comes with Windows 10 with the PEM_read_PrivateKey() function, the following error occurred. error: 0906D06C: lib(9): func(109): reason(108) The platform is CentOS7, Op

Re: RSA private key file created with Windows10

2022-10-04 Thread Tomas Mraz
SA private key file created with the ssh-keygen > command that comes with Windows 10 with the PEM_read_PrivateKey() > function, the following error occurred. > > error: 0906D06C: lib(9): func(109): reason(108) > > The platform is CentOS7, OpenSSL 3.0.5. > Is the private k

RSA private key file created with Windows10

2022-10-04 Thread Imazu Setsuo
Hello. When I read the RSA private key file created with the ssh-keygen command that comes with Windows 10 with the PEM_read_PrivateKey() function, the following error occurred. error: 0906D06C: lib(9): func(109): reason(108) The platform is CentOS7, OpenSSL 3.0.5. Is the private key file

Re: [openssl-users] Problem with DER private key file into openssl ca

2017-08-21 Thread Robert Moskowitz
On 08/21/2017 01:41 PM, Jeffrey Walton wrote: openssl req -outform $format -config $cadir/openssl-root.cnf -set_serial 0x$(openssl rand -hex $sn)\ -inform $format -key private/ca.key.$format -subj "$DN"\ -new -x509 -days 7300 -sha256 -extensions v3_ca -out certs/ca.cert.$format u

Re: [openssl-users] Problem with DER private key file into openssl ca

2017-08-21 Thread Jeffrey Walton
> openssl req -outform $format -config $cadir/openssl-root.cnf -set_serial > 0x$(openssl rand -hex $sn)\ > -inform $format -key private/ca.key.$format -subj "$DN"\ > -new -x509 -days 7300 -sha256 -extensions v3_ca -out > certs/ca.cert.$format > > unable to load Private Key > 14049243077

[openssl-users] Problem with DER private key file into openssl ca

2017-08-21 Thread Robert Moskowitz
format=der openssl pkey -inform $format -in private/ca.key.$format -text -noout Private-Key: (256 bit) priv: 48:b3:4e:c5:0a:0c:af:78:b9:a2:d4:b8:7e:18:78: f2:39:9c:77:51:a3:1c:6f:df:31:20:e3:e4:9a:52: 3d:06 pub: 04:ce:ff:5d:d4:c7:b6:9c:c2:31:d9:38:fe:2b:9c: 70:3a:fd:22:6d:97:

Re: [openssl-users] Differences in openssl 0.9.8 and 1.0.1x for private pem key file

2014-12-30 Thread Dave Thompson
teKey. > 1.0.1x - PEM_write_bio_PKCS8PrivateKey > 0.9.8 - PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,...) Yes. To be complete, it's 0.9.8anything versus 1.0.0anything OR 1.0.1anything. > 1. As I mentioned earlier, We have a sample application where we try to read > a sample pem key file, cre

Re: [openssl-users] Differences in openssl 0.9.8 and 1.0.1x for private pem key file

2014-12-30 Thread Jaya Nageswar
PEM_write_bio_PrivateKey. 1.0.1x - PEM_write_bio_PKCS8PrivateKey 0.9.8 - PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,...) 1. As I mentioned earlier, We have a sample application where we try to read a sample pem key file, create an EVP_PKEY indirectly using PEM_read_bio_PrivateKey and try to

Re: [openssl-users] Differences in openssl 0.9.8 and 1.0.1x for private pem key file

2014-12-22 Thread Jakob Bohm
On 22/12/2014 13:57, Dave Thompson wrote: At least for now; there is another thread started just a few days ago about all PEM formats used by OpenSSL suggesting the traditional privatekey forms are obsolete and maybe should be deleted! Please don't do that until 5+ years after 0.9.8 end-of-life

Re: [openssl-users] Differences in openssl 0.9.8 and 1.0.1x for private pem key file

2014-12-22 Thread Dave Thompson
d a sample pem key file, create an > EVP_PKEY indirectly using PEM_read_bio_PrivateKey [and] try to create > pem key files encrypted using different ciphers like (RC2, RC4 etc.). The mechanism was refactored some, but the visible change is deliberate. There have long been routi

[openssl-users] Differences in openssl 0.9.8 and 1.0.1x for private pem key file

2014-12-22 Thread Jaya Nageswar
Dear openssl community, In our application, we have been using openssl 0.9.8 and trying to move to openssl 1.0.1x as 0.9.8 is going to be EOS by December 2015. We have a sample application where we try to read a sample pem key file, create an EVP_PKEY indirectly using PEM_read_bio_PrivateKey

RE: cannot read PEM key file - no start line

2014-09-14 Thread Liz Fall
Thanks for the recommendations, Michael. Liz -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Michael Wojcik Sent: Sunday, September 14, 2014 5:28 AM To: openssl-users@openssl.org Subject: RE: cannot read PEM key file - no

RE: cannot read PEM key file - no start line

2014-09-14 Thread Michael Wojcik
> From: owner-openssl-us...@openssl.org [mailto:owner-openssl- > us...@openssl.org] On Behalf Of Liz Fall > Sent: Sunday, 14 September, 2014 00:33 > To: openssl-users@openssl.org > Subject: RE: cannot read PEM key file - no start line > > Thank you, Viktor. Do you have a goo

Re: cannot read PEM key file - no start line

2014-09-13 Thread Viktor Dukhovni
On Sat, Sep 13, 2014 at 09:32:59PM -0700, Liz Fall wrote: > Thank you, Viktor. Do you have a good recommendation? Sorry, have not read any myself. Got there over a couple of decades via a different path, but I am under the impression that at least one decent book on the subject is available. -

RE: cannot read PEM key file - no start line

2014-09-13 Thread Liz Fall
read PEM key file - no start line On Sat, Sep 13, 2014 at 06:46:01PM -0700, Liz Fall wrote: > I did specify the client key file to NULL. Then, I authenticated the > client with a user id and password. That worked. Good. I think it is best to stop there for now. > Why would the file n

Re: cannot read PEM key file - no start line

2014-09-13 Thread Viktor Dukhovni
On Sat, Sep 13, 2014 at 06:46:01PM -0700, Liz Fall wrote: > I did specify the client key file to NULL. Then, I authenticated the client > with a user id and password. That worked. Good. I think it is best to stop there for now. > Why would the file not have a client private key?

RE: cannot read PEM key file - no start line

2014-09-13 Thread Liz Fall
Hi Victor, I did specify the client key file to NULL. Then, I authenticated the client with a user id and password. That worked. Why would the file not have a client private key? Thanks for your help. Liz -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner

RE: cannot read PEM key file - no start line

2014-09-13 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Dave Thompson > Sent: Friday, September 12, 2014 04:31 > *If* you are now using a legacy-format encrypted private-key (and your > original > error message suggested you might need some form of private key, which does > necessarily mean legacy

Re: cannot read PEM key file - no start line

2014-09-12 Thread Viktor Dukhovni
yes 76 chars is a problem. That said, it seems more likely that the real issue is that client code should be attempting to employ a client certificate file. The OP provided a file with no client private key (there is none), and the software complains since no private key of any kind is found. T

RE: cannot read PEM key file - no start line

2014-09-12 Thread Dave Thompson
okay. From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Liz Fall Sent: Wednesday, September 10, 2014 11:20 To: openssl-users@openssl.org Subject: RE: cannot read PEM key file - no start line Hi Dave, Are you saying that the 76 characters per

Re: cannot read PEM key file - no start line

2014-09-10 Thread Jeffrey Walton
On Tue, Sep 9, 2014 at 8:49 PM, Dave Thompson wrote: > ... > > I have and know of no software to create encrypted legacy-format privatekeys > other than OpenSSL itself which always writes 64, so I never encountered > this before. > You can use Crypto++ with the PEM Pack (http://www.cryptopp.com/wi

RE: cannot read PEM key file - no start line

2014-09-10 Thread Liz Fall
Subject: RE: cannot read PEM key file - no start line I was half wrong before. The base64 read in EVP_Decode* allows 76. But the PEM parser in PEM_read_bio enforces exactly 64 >>only for input files that have PEM-encrypt headers<< which in practice is only encrypted legacy-forma

RE: cannot read PEM key file - no start line

2014-09-09 Thread Dave Thompson
To: OpenSSL Users List Subject: Re: cannot read PEM key file - no start line On Sun, Sep 7, 2014 at 10:26 PM, Liz Fall wrote: All, I am getting the following with my client cert when trying to connect to an SSL-enabled MongoDB: 2014-09-03T13:37:56.881-0500 ERROR: cannot read

RE: cannot read PEM key file - no start line

2014-09-09 Thread Liz Fall
WF Enterprise CA 02 certificate, signed by WF Root · WF Root certificate I get these errors trying when trying to use each cert separately: · 2014-09-03T13:46:42.186-0500 ERROR: cannot read PEM key file: /users/apps/tstlrn/u019807/DTCD9C3B2F42757.ent.

Re: cannot read PEM key file - no start line

2014-09-09 Thread Viktor Dukhovni
e two pem > files below. Most applications that use TLS do not employ client certificates. In such applications the server typically has a certificate chain file (containing its certificate and those of issuing CAs ordered from leaf to optional root) and a private key file (which may be the same

Re: cannot read PEM key file - no start line

2014-09-09 Thread Jeffrey Walton
On Sun, Sep 7, 2014 at 10:26 PM, Liz Fall wrote: > All, > > > > I am getting the following with my client cert when trying to connect to > an SSL-enabled MongoDB: > > > > 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM key file: > /users/ap

RE: cannot read PEM key file - no start line

2014-09-09 Thread Liz Fall
certificate Thanks, Liz -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Monday, September 08, 2014 8:28 PM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Mon, Sep 08, 2014

Re: cannot read PEM key file - no start line

2014-09-08 Thread Viktor Dukhovni
On Mon, Sep 08, 2014 at 08:14:32PM -0700, Liz Fall wrote: > I am trying to connect to a MongoDB SSL-enable database. This is the API: > // only really need a PEM on the server side > mongo::sslGlobalParams.sslPEMKeyFile = ""; The comment is highly misleading. PEM is a "meta" format. I

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
certificate Can someone please help clarify this? Thanks, Liz -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Monday, September 08, 2014 7:54 PM To: openssl-users@openssl.org Subject: Re: cannot read

Re: cannot read PEM key file - no start line

2014-09-08 Thread Viktor Dukhovni
On Mon, Sep 08, 2014 at 07:44:56PM -0700, Liz Fall wrote: > This is what my cert looks like below: What are you saying I should do? > Thanks for the clarification. These are the certificates for an intermediate CA and the issuing root CA. Generally, you'd append these to a certificate file with

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
CERTIFICATE- -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Dave Thompson Sent: Monday, September 08, 2014 7:29 PM To: openssl-users@openssl.org Subject: RE: cannot read PEM key file - no start line > From: owner-openssl

RE: cannot read PEM key file - no start line

2014-09-08 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Viktor Dukhovni > Sent: Monday, September 08, 2014 08:42 > On Sun, Sep 07, 2014 at 07:26:05PM -0700, Liz Fall wrote: > > > I have checked and verified that there is no whitespace. Also, the BEGIN > > and END statements look correct. However,

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Viktor Dukhovni Sent: Monday, September 08, 2014 5:20 PM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Mon, Sep 08, 2014 at 05:03:58PM -0700, Liz Fall wrote: > Thank you

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
Hi Viktor, Thanks for your response. I also saw this response from -M. Would this be a problem also? Cert file or key file? The error indicates that the client can't find the private key. Thank you, Liz -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-opens

Re: cannot read PEM key file - no start line

2014-09-08 Thread Viktor Dukhovni
On Mon, Sep 08, 2014 at 05:03:58PM -0700, Liz Fall wrote: > Thank you so much for your response. > > Do I need to request for a specific certificate that will is base64? No, you can just re-wrap the base64 data you have to 64 characters per line. There are two different 64's here. The size of

RE: cannot read PEM key file - no start line

2014-09-08 Thread Liz Fall
, 2014 5:42 AM To: openssl-users@openssl.org Subject: Re: cannot read PEM key file - no start line On Sun, Sep 07, 2014 at 07:26:05PM -0700, Liz Fall wrote: > I have checked and verified that there is no whitespace. Also, the > BEGIN and END statements look correct. However, each line in th

Re: cannot read PEM key file - no start line

2014-09-08 Thread Michael Sierchio
On Sun, Sep 7, 2014 at 10:26 PM, Liz Fall wrote: > I am getting the following with my client cert when trying to connect to an > SSL-enabled MongoDB: > > 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM key file: > /users/apps/tstlrn/u019807/DTCD9C3B2F42757.ent.wfb.bank.corp_

Re: cannot read PEM key file - no start line

2014-09-08 Thread Viktor Dukhovni
On Sun, Sep 07, 2014 at 07:26:05PM -0700, Liz Fall wrote: > I have checked and verified that there is no whitespace. Also, the BEGIN > and END statements look correct. However, each line in the cert is 76 chars > in length, except for the last line. Should the lines be 64-characters > long? Ye

Re: cannot read PEM key file - no start line

2014-09-08 Thread Jeffrey Walton
On Sun, Sep 7, 2014 at 10:26 PM, Liz Fall wrote: > I am getting the following with my client cert when trying to connect to > an SSL-enabled MongoDB: > > > 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM key file: > /users/apps/tstlrn/u019807/DTCD9C3B2F42757.ent.wfb.bank.co

cannot read PEM key file - no start line

2014-09-07 Thread Liz Fall
All, I am getting the following with my client cert when trying to connect to an SSL-enabled MongoDB: 2014-09-03T13:37:56.881-0500 ERROR: cannot read PEM key file: /users/apps/tstlrn/u019807/DTCD9C3B2F42757.ent.wfb.bank.corp_mongo_wells.pem error:0906D06C:PEM routines:PEM_read_bio:no start

Re: Fwd: Application simply comes out in the function PEM_write_RSAPrivateKey.The private key file is simply 0KB.

2014-04-17 Thread nyle
Did you get solution? I am having same problem -- View this message in context: http://openssl.6102.n7.nabble.com/Application-simply-comes-out-in-the-function-PEM-write-RSAPrivateKey-The-private-key-file-is-simply--tp2033p49530.html Sent from the OpenSSL - User mailing list archive at

Re: genpkey does not append EC parameters to the key file

2014-02-20 Thread Viktor Dukhovni
On Fri, Feb 21, 2014 at 03:38:19PM +1100, Cagri Emer wrote: > When I create a EC key with ecparam, and bind that to a certificate as > shown in steps 1 to 3, that certificate works fine with Apache. > > If I try to achieve the same result with genpkey as shown in steps > 4-7, then the certificate

genpkey does not append EC parameters to the key file

2014-02-20 Thread Cagri Emer
Hi all, I'm writing a document on genpkey application and I observed an interesting behaviour. When I create a EC key with ecparam, and bind that to a certificate as shown in steps 1 to 3, that certificate works fine with Apache. [1] openssl ecparam -out ecParamKey.pem -name secp384r1 -genkey [2

RE: Removing the passpharse from key file using openssl API's

2013-12-10 Thread Dave Thompson
> From: owner-openssl-users On Behalf Of Manoj > Sent: Tuesday, December 10, 2013 08:31 > I am creating an EVP_PKEY using functions EVP_PKEY_new() and then > RSA_generate_key_ex() > and then wrtting the obtained key to file using function > PEM_write_PrivateKey(). > As the writing of key to file r

Removing the passpharse from key file using openssl API's

2013-12-10 Thread Manoj
requirement of password during key file loading and ssl connection setup. Regards Manoj -- View this message in context: http://openssl.6102.n7.nabble.com/Removing-the-passpharse-from-key-file-using-openssl-API-s-tp47617.html Sent from the OpenSSL - User mailing list archive at Nabble.com

Re: combining cert file and private key file subjectAltName using my own CA

2013-10-05 Thread Dave Mitchell
On Fri, Oct 04, 2013 at 10:05:08PM -0400, Dave Thompson wrote: > > 1) is this a reasonable thing to do? > > Yes. Ok thanks. That's reassuring. > You don't say why you chose to generate keys centrally. In case you didn't > know, even with your own CA you *can* still use the conventional process

RE: combining cert file and private key file subjectAltName using my own CA

2013-10-05 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Dave Mitchell > Sent: Friday, October 04, 2013 17:59 > I'm writing an openssl-based app that uses client and sever certs, > generated using a private root CA. Each client has its own cert and > private key. > > For ease of deployment, I'm combi

combining cert file and private key file subjectAltName using my own CA

2013-10-04 Thread Dave Mitchell
I'm writing an openssl-based app that uses client and sever certs, generated using a private root CA. Each client has its own cert and private key. For ease of deployment, I'm combining the private key and public cert into a single file, i.e.: $ cat client.key client.crt > client.privcrt Th

RE: How do I get the .key file, to put on the server (for use by Apache httpd)

2013-09-30 Thread Dave Thompson
PEM and DER, but not the way you show. Plus httpd or rather mod_ssl wants PEM files anyway (both privkey and cert(s)). At least assuming it's using OpenSSL -- I believe there used to be versions that used GnuTLS which has quite different files. The private key file generated by genrsa is in

Re: How do I get the .key file, to put on the server (for use by Apache httpd)

2013-09-30 Thread Kelly John Rose
013 2:10 PM, Ted Byers wrote: > I issued the following command (with my own name in place of > privkey) > > openssl genrsa -out privkey.pem 2048 I then made the csr using > > openssl req -new -key privkey.pem -out cert.csr > > That is simple enough. But, I need a .key fi

How do I get the .key file, to put on the server (for use by Apache httpd)

2013-09-30 Thread Ted Byers
I issued the following command (with my own name in place of privkey) openssl genrsa -out privkey.pem 2048 I then made the csr using openssl req -new -key privkey.pem -out cert.csr That is simple enough. But, I need a .key file to deploy on the server beside the crt files. If I understand

Re: cannot password protect key file in FIPS mode

2013-01-01 Thread Jakob Bohm
On 1/1/2013 1:26 AM, Sial Nije wrote: Greetings, I need help to generate an ECDSA key file that is passphrase protected and the key file is used in FIPS mode. My application is StrongSwan linked with FIPS enabled libcrypto.so, version 1.0.1c. Seems FIPS capable openssl executable uses hard

RE: Why key file in *client* certificate situation?

2012-08-27 Thread Charles Mills
Thanks. I think I get it. Charles -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of Jakob Bohm Sent: Monday, August 27, 2012 10:19 AM To: openssl-users@openssl.org Subject: Re: Why key file in *client* certificate situation

Re: Why key file in *client* certificate situation?

2012-08-27 Thread Jakob Bohm
On 8/27/2012 3:46 PM, Charles Mills wrote: I'm just trying to understand the SSL protocol -- this is not an alleged bug or an "issue." In OpenSSL s_client, or for that matter, in my client test program, an attempt to use a *client* certificate fails unless I also specify -key or call SSL_C

Why key file in *client* certificate situation?

2012-08-27 Thread Charles Mills
I'm just trying to understand the SSL protocol -- this is not an alleged bug or an "issue." In OpenSSL s_client, or for that matter, in my client test program, an attempt to use a *client* certificate fails unless I also specify -key or call SSL_CTX_use_PrivateKey_file(). Why? What role does the

Q: openssl dgst: unable to load key file error?

2012-07-17 Thread Li, David
Hi, I am trying to sign a file using dgst but not sure why I got this "unable to load key file". Here is the original command: openssl dgst -sha384 -out xyz.sig -sign $PWD/keys/my_private.pem xyz.to-be-signed The private key file my_private.pem DOES exist in the directory. T

Fwd: Application simply comes out in the function PEM_write_RSAPrivateKey.The private key file is simply 0KB.

2011-06-22 Thread Kamalraj Madhurakasan
-- Forwarded message -- From: Kamalraj Madhurakasan Date: Thu, Jun 23, 2011 at 12:04 PM Subject: Application simply comes out in the function PEM_write_RSAPrivateKey.The private key file is simply 0KB. To: openssl-users@openssl.org Hi, I am new to openssl and trying to create

Application simply comes out in the function PEM_write_RSAPrivateKey.The private key file is simply 0KB.

2011-06-22 Thread Kamalraj Madhurakasan
Hi, I am new to openssl and trying to create the Self-signed Certificate using openssl in my application. I downloaded openssl for windows (version OpenSSL 1.0.0d 8 Feb 2011) and got libeay32.lib, ssleay32.lib, libeay32.dll and ssleay32.dll. I linked my application with these libraries and kept

RE: EC domain params instead of the OID in the pkcs8 key file?

2010-11-10 Thread Stef Hoeben
l Message- > From: owner-openssl-us...@openssl.org [mailto:owner-openssl- > us...@openssl.org] On Behalf Of Victor Duchovni > Sent: dinsdag 9 november 2010 22:11 > To: openssl-users@openssl.org > Subject: Re: EC domain params instead of the OID in the pkcs8 key file? > > On T

Re: EC domain params instead of the OID in the pkcs8 key file?

2010-11-09 Thread Victor Duchovni
On Tue, Nov 09, 2010 at 09:34:42PM +0100, Stef Hoeben wrote: > Hi, > > using the openssl tool, we generated an Elliptic Curve key pair > and put it into a pkcs8 file: > >0 48: SEQUENCE { >32: INTEGER 0 >6 48: SEQUENCE { >86: OBJECT IDENTIFIER ecPublicKey (1 2

EC domain params instead of the OID in the pkcs8 key file?

2010-11-09 Thread Stef Hoeben
Hi, using the openssl tool, we generated an Elliptic Curve key pair and put it into a pkcs8 file: 0 48: SEQUENCE { 32: INTEGER 0 6 48: SEQUENCE { 86: OBJECT IDENTIFIER ecPublicKey (1 2 840 10045 2 1) 176: OBJECT IDENTIFIER '1 2 840 10045 3 1 7' :

unable to set private key file: 'device_privatekey' type PEM in SSL library.

2010-03-24 Thread venkatgiri
e function "SSL_CTX_use_certificate_chain_file", but i'm getting an error from the function "SSL_CTX_use_PrivateKey_file" while i'm trying to set the private key (which is in PEM format). The error i received is /*unable to set private key file: 'device_private

Re: self-signed cert without private key file

2009-03-20 Thread Graham Leggett
carock wrote: Unfortunately, I'm dealing with an HP Proliant server. Specifically the iLO interface which is a backend management device embeded in the server. This device has it's own SSL cert from the factory. With the latest rounds of updates from Firefox, that browser now complains "my cert

Re: self-signed cert without private key file

2009-03-20 Thread carock
ivate one such as "serverfoo.local". > > Where are you getting the CSR from if you don't have a private key? > > Regards, > Graham > -- > > > -- View this message in context: http://www.nabble.com/self-signed-cert-without-private-

Re: self-signed cert without private key file

2009-03-20 Thread Graham Leggett
carock wrote: Can the same process be duplicated without going commercial? I need a certificate that doesn't use a FQDN for the common name and I haven't found a commercial one that allows that. Set up your own CA, and issue your own certificates to your own requirements. The problem then boi

Re: self-signed cert without private key file

2009-03-20 Thread carock
sn't work with Firefox, but it does with I.E. Ideas? Thanks, Chuck You cannot self-sign a certificate without the private key file. The private key file is the thing which allows the signature to be created, the public key (in the certificate) is the thing which allows the signat

Re: self-signed cert without private key file

2009-03-20 Thread Kyle Hamilton
You cannot self-sign a certificate without the private key file. The private key file is the thing which allows the signature to be created, the public key (in the certificate) is the thing which allows the signature to be verified. Commercial SSL certificates don't require *your* privat

self-signed cert without private key file

2009-03-20 Thread carock
I need to generate a self-signed certificate from a normal CSR file. I don't have the private key that goes with the CSR though. All of the examples for generating a self-signed cert have the private key file listed in the command string. I tried running it without it and it fails though.

digest verification failing due to "unable to load key file"

2008-09-20 Thread Guy Helmer
the message "unable to load key file". All three files (palisadesys-publiconly.pem, file.tar.gz.sha1, and file.tar.gz) are readable. Thanks for any help, Guy Helmer -- Guy Helmer, Ph.D. Chief System Architect Palisade Sy

Re: querry about content of the RSA key file

2008-03-20 Thread Marek . Marcola
Hello, > I need to know the content of RSA key files (private and public both). > > is there any header that we write in these files? > > what all parameters(n,e,d,p,q) are written in each file? RSA key is encoded with ASN.1. Look at PKCS#1 specification for details. Best regards, -- Mar

querry about content of the RSA key file

2008-03-18 Thread vinay singh
Hello everyone, I need to know the content of RSA key files (private and public both). is there any header that we write in these files? what all parameters(n,e,d,p,q) are written in each file? regards vinay

Cannot convert private key file to PKCS8 with OpenSSL 0.9.7m compiled by VS2005

2007-04-03 Thread David Gillingham
About a year ago, I posted to this mailing list looking for information debugging errors I had trying to make stunnel operate in OpenSSL's FIPS mode. I was able to do this with the help with the aid of Dr. Henson. One of the suggestion he made to me was to convert my private keys into PKCS#8 for

Re: OpenSSL Hanging When Attempting To Generate Key File

2006-09-20 Thread Bernhard Froehlich
Jeanna Geier wrote: [...] $ openssl genrsa -des3 -out server.key 2048 Loading 'screen' into random state - done Generating RSA private key, 2048 bit long modulus +++ ..+++ Hmm, I have tested the command line on my Win32 version of openssl an

OpenSSL Hanging When Attempting To Generate Key File

2006-09-20 Thread Jeanna Geier
Hi All- I'm new to OpenSSL, so I hope that someone out there can help me with this problem. I have been searching mailing lists and googling for the past few of days with no luck, so any help that you can offer would be greatly appreciated!! My main goal is to build Postgres with ssl enable

RE: Key file

2006-08-21 Thread Ambarish Mitra
3:22 PM To: openssl-users@openssl.org Subject: Key file Is it possible to specify instead of filename (char* file) for SSL_use_certificate_file file with absolute path? Because it doesn't work for me :-( and in the man page is nothing about 'path' Thanks DISCLAIMER ===

Re: Key file

2006-08-21 Thread Florian G otter
Hello ! The following works for me (it's hardcoded however!). #define certificate_file "/root/security/server.crt" if((SSL_use_certificate_file(m_ssl,certificate_file,1))!=1) //FG: Define SSL certificate to use { cout << "SSL certificate file error - did not open" << endl; } else { co

Key file

2006-08-21 Thread Bu Bacoo
Is it possible to specify instead of filename (char* file) for SSL_use_certificate_file file with absolute path? Because it doesn't work for me :-( and in the man page is nothing about 'path' Thanks __ OpenSSL Project

Re: OpenSSL command line error: unable to load client certificate private key file

2006-06-11 Thread deependra baniya
nd line tool> like this;> > $ openssl s_client -connect secure.incab.se/verify/server/click:443> -cert trusted.cer> > The error I receive is;> unable to load client certificate private key file> 9613:error:0906D06C:PEM routines:PEM_read_bio:no start> line:pem_lib.c:644:Exp

Re: OpenSSL command line error: unable to load client certificate private key file

2006-06-05 Thread Torsha Banerjee
secure.incab.se/verify/server/click:443 -cert trusted.cer The error I receive is; unable to load client certificate private key file 9613:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:644:Expecting: ANY PRIVATE KEY I have been unable to find information pertaining to this error message

Re: OpenSSL command line error: unable to load client certificate private key file

2006-06-05 Thread Dr. Stephen Henson
ver/click:443 > -cert trusted.cer > > The error I receive is; > unable to load client certificate private key file > 9613:error:0906D06C:PEM routines:PEM_read_bio:no start > line:pem_lib.c:644:Expecting: ANY PRIVATE KEY > > I have been unable to find information pertaining to

Re: OpenSSL command line error: unable to load client certificate private key file

2006-06-05 Thread Marek Marcola
receive is; > unable to load client certificate private key file > 9613:error:0906D06C:PEM routines:PEM_read_bio:no start > line:pem_lib.c:644:Expecting: ANY PRIVATE KEY Add "-key" option. Best regards, -- Marek Marcola <[EMAIL PROTECTED]> _

OpenSSL command line error: unable to load client certificate private key file

2006-06-05 Thread Jeremiah Foster
certificate private key file 9613:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:644:Expecting: ANY PRIVATE KEY I have been unable to find information pertaining to this error message on the OpenSSL site, and Google is somewhat unhelpful since I am running linux and a lot of the URLs

unable to load key file solution

2006-02-12 Thread Ricardo Alzaga Chirino
r your aid.In the last line of this DOS code, you will see that the message is "unable to load key file". I do not know why and I cannot finish the process of verification of the seal. Could you help me to resolve it? I appreciate your attention,   Ing. Ricardo Manuel Alzaga Chir

Re: DER public key file structure

2004-12-15 Thread Dr. Stephen Henson
On Wed, Dec 15, 2004, Andrus wrote: > Stephen, > > thank you. > > The command > > openssl rsautl -verify -in signature.bin -inkey public.der -pubin -keyform > DER -out signout.bin > > Causes error: > > RSA operation error > 4294560507:error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1

AW: DER public key file structure

2004-12-15 Thread thomas . beckmann
us of your key. The "footer" ([02 01] 03) is your public exponent (in ASN.1, BER coded) Regards Thomas > -Ursprüngliche Nachricht- > Von: Andrus [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 14. Dezember 2004 22:29 > An: [EMAIL PROTECTED] > Betreff: Re: DER public

Re: DER public key file structure

2004-12-14 Thread Andrus
IL PROTECTED]> Sent: Tuesday, December 14, 2004 11:20 PM Subject: Re: DER public key file structure > On Tue, Dec 14, 2004, Andrus wrote: > > > I need to decrypt RSA signature using RSA public key. > > Thanks to Nils Larsch reply I discovered that the following command can be &

Re: DER public key file structure

2004-12-14 Thread Andrus
iginal Message - From: "Charles B Cranston" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 14, 2004 10:35 PM Subject: Re: DER public key file structure > DER is short for ASN.1 Distinguished Encoding Rules. The actual > format of certificates

Re: DER public key file structure

2004-12-14 Thread Dr. Stephen Henson
On Tue, Dec 14, 2004, Andrus wrote: > I need to decrypt RSA signature using RSA public key. > Thanks to Nils Larsch reply I discovered that the following command can be > used for this: > > openssl rsautl -verify -in sig.bin -inkey public.der -pubin -keyform > DER -out signout.bin > > I have a

DER public key file structure

2004-12-14 Thread Andrus
I need to decrypt RSA signature using RSA public key. Thanks to Nils Larsch reply I discovered that the following command can be used for this: openssl rsautl -verify -in sig.bin -inkey public.der -pubin -keyform DER -out signout.bin I have a RSA 1024 bits modulus and exponent 3 I need to creat

Re: DER public key file structure

2004-12-14 Thread Charles B Cranston
DER is short for ASN.1 Distinguished Encoding Rules. The actual format of certificates and things are standardized by X.500 but these documents are expensive, so the Internet RFC people have reprinted the information in a series of documents. Take a look at ftp://www.ietf.org/rfc/rfc3280.txt pa

Re: key file creation from known hex keys

2004-11-09 Thread Ng Pheng Siong
On Tue, Nov 09, 2004 at 01:48:42AM +0100, Dr. Stephen Henson wrote: > There are a couple of ways to do this. One is to write a short program to read > in each component, populate an RSA structure with them using BN_hex2bn() and > write the result out with PEM_write_RSAPrivateKey(). Hmmm, how did I

Re: key file creation from known hex keys

2004-11-08 Thread Dr. Stephen Henson
On Mon, Nov 08, 2004, Sundar Raman wrote: > This is probably a pretty basic question, but i'm new to encryption and > openssl, so please forgive the fact that it's probably stupid. > > I've got known private and public rsa keys in hex format, including all > the parameters (n, p, q, etc.). I know

Re: key file creation from known hex keys

2004-11-08 Thread Ng Pheng Siong
On Mon, Nov 08, 2004 at 04:27:14PM -0600, Sundar Raman wrote: > I've got known private and public rsa keys in hex format, including all > the parameters (n, p, q, etc.). I know that i can use genrsa to generate > keys into a .pem file that can subsequently be passed to enc to > encrypted some data.

key file creation from known hex keys

2004-11-08 Thread Sundar Raman
This is probably a pretty basic question, but i'm new to encryption and openssl, so please forgive the fact that it's probably stupid. I've got known private and public rsa keys in hex format, including all the parameters (n, p, q, etc.). I know that i can use genrsa to generate keys into a .pem fi

Re: Question on Converting a private key file.

2004-06-24 Thread Dr. Stephen Henson
On Thu, Jun 24, 2004, McCune, Michael wrote: > Hi Andy, > > My prior post might help you (below). I basically decrypted the > original key (using "openssl pkcs8") I had generated with OpenSSL (a RSA > key), and at the same time, it was converted to a PKCS8 format. > > I stripped off the header

RE: Question on Converting a private key file.

2004-06-24 Thread McCune, Michael
; > -- Tim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andrew B. Michaelis Sent: Thursday, June 24, 2004 12:19 PM To: [EMAIL PROTECTED] Subject: Question on Converting a private key file. Greetings all, I am new to this list. I am also new to

Re: Question on Converting a private key file.

2004-06-24 Thread Charles B Cranston
J7v0epQI5anF9QZsMd0PlTD8bTSv6IrudyWPgvJYZygAF11yQWcfJYSpBlAqweiS ... What format is your private key file in? Andrew B. Michaelis wrote: Greetings all, I am new to this list. I am also new to understanding a lot of SSL encryction. What I am attemting to/need to do is to take an existing private key created with the openSSL tool and

  1   2   >