Hi all,

I'm having trouble getting the private key out of an IIS .key cert.

I've followed the instructions to strip off the extra ASN1 SEQUENCE data at 
the beginning of the key, but it doesn't seem to work:

On Win32:

E:\openssl-win32>openssl rsa -inform NET -in priv.key -out key.pem
read RSA key
Enter Private Key password:
unable to load key
1692:error:0D08C007:asn1 encoding routines:D2I_NETSCAPE_PKEY:expecting an 
asn1 sequence:.\crypto\asn1\n_pkey.c:311:address=3131288 offset=0
1692:error:0D08E08B:asn1 encoding routines:d2i_Netscape_RSA_2:unable to 
decode rsa private key:.\crypto\asn1\n_pkey.c:268:
1692:error:0D08D06F:asn1 encoding routines:d2i_Netscape_RSA:decoding 
error:.\crypto\asn1\n_pkey.c:4535002:address=8650824 offset=17


On Solaris 8:

$ /usr/local/ssl/bin/openssl rsa -inform NET -in priv.key -out key.pem
read RSA key
zsh: segmentation fault (core dumped)  /usr/local/ssl/bin/openssl rsa 
-inform NET -in priv.key




Any ideas?  The keys were exported from IIS 4...


Thanks in advance...

-Adam

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

Reply via email to