Trust certificate authority per firma digitale

Vedi la faq in italiano If you try to verify the signature of a p7m file without the Certification Authority (la CA), the verification fails (“unable to load certificate”) because we do not have CA trust certificates (so-called Trusts). These Certificate Authorities have been defined by Italian law and are registered on the CNIPA, which Continue Reading

Checking the signature of a p7m document

Vedi la faq in italiano Consider the case where the signed document is a pdf (document.pdf.p7m). To verify the signature and extract the content file, we use the openssl command with the smime parameter for signature verification (-verify) openssl smime -in document.pdf.p7m -inform DER -verify -CAfile CA.pem -out document.pdf where CA.pem contains the CA certificate Continue Reading

Extraction of the certificate of a digitally signed files (p7m)

Vedi la faq in italiano Let’s consider the case where the signed document is a pdf (document.pdf.p7m). To extract the certificate used to sign the p7m we use the openssl command with the pkcs parameter openssl pkcs7 -inform DER -in document.pdf.p7m -print_certs -out cert.pem The certificate will be extracted in the cert.pem file. If you Continue Reading

Extracting the contents of a digitally signed file (p7m)

Vedi la faq in italiano 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