Extracting the contents of a digitally signed file (p7m)

Let's consider the case where the signed document is a pdf (document.pdf.p7m).

To extract the content file we use the openssl command with the smime parameter for signature verification (-verify)

openssl smime -verify -noverify -in document.pdf.p7m -inform DER -out document.pdf

For more information, see the articol

One thought on “Extracting the contents of a digitally signed file (p7m)

Leave a Reply

Your email address will not be published. Required fields are marked *

31 − = 29