Thanks, it worked.

-Arne-

-----Original Message-----
From: Richard Levitte - VMS Whacker [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 08, 2000 11:41 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: openSSL pkcs12: Generating self signed .p12 file


etoxarr> # Generating PKCS#12 files
etoxarr> openssl pkcs12 -export -in selfsigned.pem -out selfsigned.p12 -name
etoxarr> "selfsigned"
etoxarr> 
etoxarr> The last command fails with the following error message:
etoxarr> 
etoxarr> Error loading private key
etoxarr> 13372:error:0906D06C:PEM routines:PEM_read_bio:no start
etoxarr> line:pem_lib.c:662:Expecting: ANY PRIVATE KEY
etoxarr> 
etoxarr> Do you have any tips of how to solve this?

"ANY PRIVATE KEY" should give you a hint.  selfsigned.pem does not
contain the private key.  The solution is the following:

openssl pkcs12 -export -in selfsigned.pem -out selfsigned.p12 -name \
"selfsigned" -inkey key.pem

-- 
Richard Levitte   \ Spannvägen 38, II \ [EMAIL PROTECTED]
Chairman@Stacken   \ S-168 35  BROMMA  \ T: +46-8-26 52 47
Redakteur@Stacken   \      SWEDEN       \ or +46-708-26 53 44
Procurator Odiosus Ex Infernis             -- [EMAIL PROTECTED]
           Member of the OpenSSL development team

Unsolicited commercial email is subject to an archival fee of $400.
See <http://www.stacken.kth.se/~levitte/mail/> for more info.


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to