On Tue, Dec 27, 2005, Chris Morrison wrote:

> 
> 
> I've finally found time to get back to this project. Thanks for the pointers
> Steve.
> 
> However, I've tried using the above call d2i_PKCS7(), but it fails to open
> the store with the errors below.
> 
> 4777:error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong
> tag:tasn_dec.c:946:
> 4777:error:0D07803A:asn1 encoding routines:ASN1_ITEM_EX_D2I:nested asn1
> error:tasn_dec.c:304:Type=PKCS7
> 

What do you mean "fails to open the store"? 

What does the data look like that you are feeding into d2i_PKCS7()? Doies it
have lines with -----BEGIN XXXX---- in it?

If the data is available as a file try:

openssl pkcs7 -in file -inform DER

openssl pkcs7 -in file 

and if both of those fail:

openssl asn1parse -inform DER -in file

There are also some proprietary store outputs from CryptoAPI which can be
produced which OpenSSL cannot handle.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to