RE: openssl function to convert pkcs#8

2012-10-15 Thread Dave Thompson
>From: owner-openssl-us...@openssl.org On Behalf Of Sanjay Patnaik (sanpatna) >Sent: Friday, 12 October, 2012 16:29 >Is there any documentation available for functions like >PEM_read_PrivateKey, Pem_write_PrivateKey etc. On any correct Unix install you should have man pages. Or online at http:/

Re: openssl function to convert pkcs#8

2012-10-15 Thread Sanjay Patnaik (sanpatna)
Hi, Is there any documentation available for functions like PEM_read_PrivateKey, Pem_write_PrivateKey etc. My problem is that I have an asn1 encoded data (DER format) in buffer x which I have to use for getting a pkcs1 format private key. So using d2_X509_SIG, pkcs8_decrypt, EVP_PKCS82PKE

Re: openssl function to convert pkcs#8

2007-07-11 Thread Jim Fox
I have another problem now, I want to convert a pkcs#1 to a pkcs#8 using the openssl function. I noticed that there is a "PEM_write_PKCS8PrivateKey()", but I believe it produces a pkcs#1 public key, so how do i get a pkcs8 public key? pkcs8 is just for private keys. There isn't any pkcs8 p

Re: openssl function to convert pkcs#8

2007-07-11 Thread Janet N
Hi, I have another problem now, I want to convert a pkcs#1 to a pkcs#8 using the openssl function. I noticed that there is a "PEM_write_PKCS8PrivateKey()", but I believe it produces a pkcs#1 public key, so how do i get a pkcs8 public key? thanks! On 6/27/07, Dr. Stephen Henson <[EMAIL PROTECTE

Re: openssl function to convert pkcs#8

2007-06-27 Thread Dr. Stephen Henson
On Wed, Jun 27, 2007, Janet N wrote: > Hi, > > Is there a function in openssl that can convert a private key from a pkcs#8 > to pkcs#1? I've done this with the command line and it works fine, just > want to do this programmatically: > > command line (want to do this using openssl function inste

openssl function to convert pkcs#8

2007-06-27 Thread Janet N
Hi, Is there a function in openssl that can convert a private key from a pkcs#8 to pkcs#1? I've done this with the command line and it works fine, just want to do this programmatically: command line (want to do this using openssl function instead): openssl pkcs8 -inform PEM -nocrypt -in dsakey.