Sorry for any repost, I don't know if my message was already posted or
not... -------- Message original --------
Hello, I want to convert a private key from DER to PEM format with the following command : >openssl pkcs8 -inform DER -nocrypto -in my.key -out my.key.pem Unfortunately, it seems that -nocrypto options doesn't exist in my openssl versions (OpenSSL 0.9.8e and OpenSSL 0.9.8h ) So I've tried the following command : >openssl pkcs8 -inform DER -nocrypt -in my.key -out my.key.pem Error decrypting key 3408:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag:.\crypto\asn1\tasn_dec.c:1294: 3408:error:0D06C03A:asn1 encoding routines:ASN1_D2I_EX_PRIMITIVE:nested asn1 error:.\crypto\asn1\tasn_dec.c:830: 3408:error:0D08303A:asn1 encoding routines:ASN1_TEMPLATE_NOEXP_D2I:nested asn1 error:.\crypto\asn1\tasn_dec.c:749:Field=version, Type=PKCS8_PRIV_KEY_INFO Ok... tried the following too : >openssl pkcs8 -inform DER -nocrypt -in my.key -out my.key.pem -topk8 unable to load key Does anyone can help me? Regards, Sebastien --
Sébastien PIAU
![]() 0954 59 4905 - 06 88 11 60 58
Adoptez l'éco-attitude.
N'imprimez ce message que si cela est vraiment nécessaire.
|
- [Fwd: Convert DER to PEM syntax problem] Sébastien PIAU
- Re: [Fwd: Convert DER to PEM syntax problem] Dr. Stephen Henson
- Re: [Fwd: Convert DER to PEM syntax problem] Sébastien PIAU