enricorossi.org

Enrico Rossi


Articles tagged with openssl

View p7m file with openssl

Tags: encrypt, howto, openssl, p7m, sign, smime

How to view the content of a .p7m file

Normally a .p7m file is what in openssl terms is a DER file 1 (note: it work also with cms command).

openssl smime -verify -in smime.p7m -inform der -noverify -signer cert.pem -out textdata

where:

  • -verify to tell openssl that …
Read more...

Debian Openssl add CA

Tags: bank, howto, linux, openssl, security

My new bank send me signed emails, but theirs CA is not present in debian openssl installation. Looking around into their website I've found the CA certificate called TrustItaliaC1.cer. Downloaded it then

openssl x509 -in TrustItaliaC1.cer -text

It should dump the certificate contents. Unfortunately I didn't find a …

Read more...