Hi everybody!
I need help cause I'm not able to extract files contained in a p7m envelope.
The command used is this:
openssl.exe smime -verify -inform DER -in "File.xml.p7m" -noverify -out "Content.xml"
It works in 99% of cases but with some envelope I get this error:
Error reading S/MIME message
2860:error:0D0680A8:asn1 encoding routines:asn1_check_tlen:wrong tag:..\crypto\asn1\tasn_dec.c:1129:
2860:error:0D07803A:asn1 encoding routines:asn1_item_embed_d2i:nested asn1 error:..\crypto\asn1\tasn_dec.c:289:Type=PKCS7
At this link you can download one of the files we cannot open with the command above (the content is an electronic invoice in xml format):
https://www.dropbox.com/s/09ngh6usgyhcwr7/File.xml.p7m?dl=0
May be this a bug in OpenSSL library... I tryed with many version of OpenSSL and also with the last one, but the error is still the same.
Any help is appreciated...