Thank you for your reply.
I used HxD but could not find any occurrence of 0x30 followed by 0x82.
Anything else to try?



----- Original Message -----
From: Dr. Stephen Henson <st...@openssl.org>
To: openssl-users@openssl.org
Cc: 
Sent: Wednesday, July 17, 2013 3:14 PM
Subject: Re: error "unable to load PKCS7 object... wrong tag"

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

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to