Hello, openssl-users.

I try to generate a pkcs12 file that can be imported in Netscape by
doing the following command sequence:

# create random state
openssl md5 * > rand.dat

# generate a private key protected with a passphrase
openssl genrsa -rand rand.dat -des3 1024 > key.pem

# generate a dummy self-signed certificate
openssl req -new -x509 -key key.pem -out selfsigned.pem

# Generating PKCS#12 files
openssl pkcs12 -export -in selfsigned.pem -out selfsigned.p12 -name
"selfsigned"

The last command fails with the following error message:

Error loading private key
13372:error:0906D06C:PEM routines:PEM_read_bio:no start
line:pem_lib.c:662:Expecting: ANY PRIVATE KEY

Do you have any tips of how to solve this?

-Arne-


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

Reply via email to