On Wed, Jul 17, 2013, likejiujitsu wrote: > > Running > > openssl pkcs7 -inform DER -in mycert.spc -print_certs -out mycert.crt > > gives error > > unable to load PKCS7 object 4372:error:0D0680A8:asn1 encoding > routines:ASN1_CHECK_TLEN:wrong tag:.\crypto\asn1\tasn_dec.c:1319: > 4372:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1 > error:.\crypto\asn1\tasn_dec.c:381:Type=PKCS7 > > following the instructions here > > http://stackoverflow.com/questions/17625174/how-do-i-import-the-private-and-public-keys-pvk-spc-and-certificates-cer-int >
One possible answer. Look at mycert.spc in a hex editor. Search for the first occurence of 0x30 0x82 and delete everything before it, save to a new file. Try that command again with the new file. Steve. -- Dr Stephen N. Henson. OpenSSL project core developer. Commercial tech support now available see: http://www.openssl.org ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org