A new cert req and private key were created with the following command
using OpenSSL 0.9.7i 14 Oct 2005 on OS X 10.4.3:

$openssl req -newkey rsa:2048 -keyout new-server-key.pem -out new-req.pem

Now, trying to remove the passphrase from the private key:

$ openssl rsa -in new-server-key.pem -out server-key.pem
Enter pass phrase for new-server-key.pem:
unable to load Private Key
2648:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
tag:tasn_dec.c:1002:
2648:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested
asn1 error:tasn_dec.c:305:Type=RSA
2648:error:0D09A00D:asn1 encoding routines:d2i_PrivateKey:ASN1 lib:d2i_pr.c:96:
2648:error:0906700D:PEM routines:PEM_ASN1_read_bio:ASN1 lib:pem_pkey.c:122:

Anybody have a clue what is going on here? What the hell an I missing?

Cheers,
Dom
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to