On Wed, Dec 28, 2005, Chris Morrison wrote: > > > > > 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? > > I cannot find this anywhere in the data. > > > > > 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 > > > > I have saved the data blob to a file (which I have attached to the posting). > All of the above commands fail with the same errors as d2i_PKCS7(). The > asn1parse command complains about a bad Boolean. > > I am stumped here. >
There seems to be a problem with whatever has been used to save the data. It is prepending the byte 0, 1 to the start of the structure. If you skip these OpenSSL has no problems parsing the PKCS#7 data. 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]