In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 
says...
> Hi,
> 
> Trying to convert a DER-encoded SignedData object (signedData.encode to 
> a FileOutputStream) with openssl leads to the following :
> 
> openssl pkcs7 -inform DER -in TEST.der -text
> 
> unable to load PKCS7 object
> 12531:error:0D081072:asn1 encoding routines:d2i_ASN1_OBJECT:expecting an 
> object:a_object.c:217:12531:error:0D091004:asn1 encoding 
> routines:d2i_PKCS7:nested asn1 error:p7_lib.c:259:address=135557600 offset=4
> 
> Has anybody yet encountered this kind of error in that context (probably 
> something I am doing wrong, but I can't get what) ?
> 


Depends on what you're feeding into that command. If it looks like 
base64 data then you need to convert to binary first.

If however its binary data and supposed to be in PKCS#7 format (the 
first two bytes being 0x30 0x82 or 0x30 0x80 normally indicates DER or 
BER) then if you could send me the file or post it I'll investigate why 
that command is complaining.

Steve.
-- 
Dr Stephen N. Henson.
Core developer of the   OpenSSL project: http://www.openssl.org/
Freelance consultant see: http://www.drh-consultancy.demon.co.uk/
Email: [EMAIL PROTECTED], PGP key: via homepage.

Reply via email to