Hello,

I've been given a file that is supposed to contain a private key
in PKCS#8 format. I can successfully use the key with the
software that ships with this test key. The author insists that
it's strictly PKCS#8 compliant.

However, I'm unable to use the key with OpenSSL (SNAP-20030217).
"openssl pkcs8 -inform DER -nocrypt -in key.pkcs8" yields:

Error decrypting key
22742:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:tasn_dec.c:940:
22742:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 error:tasn_dec.c:305:Type=X509_ALGOR
22742:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_D2I:nested asn1 error:tasn_dec.c:567:Field=pkeyalg, Type=PKCS8_PRIV_KEY_INFO

The key is available at http://user.blue-cable.de/~anders/testkey_pkcs8.bin .

Can anyone shed a light on this?

Kind regards,
Thomas

--
Thomas Anders (thomas.anders at blue-cable.de)

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

Reply via email to