You're right and I apologize for wasting your time. Anyway it has been worthy to play with openssl source code and find my way through it.
Alberto 2011/10/14 Dr. Stephen Henson <[email protected]>: > On Fri, Oct 14, 2011, Alberto Pozzato wrote: > >> I didn't find a way to decrypt my pkcs7 msg with cms or smime command >> directly. What I get is: >> >> openssl cms -decrypt -in msg.pk7 -inkey private.key >> Error reading S/MIME message >> 3079523064:error:0D0D40D1:asn1 encoding routines:SMIME_read_ASN1:no >> content type:asn_mime.c:447: >> >> >> openssl smime -decrypt -in msg.pk7 -inkey private.key >> Error reading S/MIME message >> 3077696248:error:0D0D40D1:asn1 encoding routines:SMIME_read_ASN1:no >> content type:asn_mime.c:447: >> > > It expects an S/MIME format input by default. Try -inform PEM > > 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 > Development Mailing List [email protected] > Automated List Manager [email protected] > ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
