On Thu, May 20, 2010, Michael Strder wrote:

> Rainer Giedat wrote:
> > i have a hard time figuring out how i can print the cipher used to
> > encrypt a smime encrypted mail.
> 
> openssl smime -in test.eml -pk7out|openssl asn1parse
> 
> Or with OpenSSL 1.0 in case S/MIME MUA sent CMS instead of PKCS#7:
> 
> openssl cms -in test.eml -cmsout -outform pem|openssl asn1parse
> 

That could be fooled by carefully crafted messages to fool parsers. Would be
better if there was an option to print the cipher but currently there isn't.

This is slightly better:

openssl cms -cmsout -in test.eml -print -noout

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
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to