Open a .p7m File: Signed PDFs From Italy Explained
A .p7m is a CAdES envelope around a signed document. The free tools AgID lists to open and verify it, and how it differs from a signed PDF (PAdES).
Eddocu team 6 min read

Short answer: a .p7m file is an envelope with a CAdES digital signature that holds the original document, so contract.pdf.p7m holds contract.pdf. To open it and check the signature, use one of the free programs listed by AgID, Italy's digital agency, such as ArubaSign or Infocert Sign (the InfoCert app that replaced Dike), or an online verifier such as those from InfoCert, Namirial or Italy's National Council of Notaries. The same programs save the PDF that is inside the envelope. Eddocu does not open .p7m files: it only comes in afterwards, on the extracted PDF.
Eddocu is the document editor we make, and we say so up front because it is not the answer here. The programs named come from AgID's "Software di verifica" page and from their makers' own pages. This article is not legal advice.
What a .p7m file is
CAdES stands for CMS Advanced Electronic Signatures, a European standard from ETSI. A CAdES signature is not written into the document; it wraps around it. The signing program takes the file, computes its hash, signs that with the holder's key and stores the document, the signature and the certificate together in one container with the .p7m extension. The original file name stays in front: report.docx.p7m, invoice.xml.p7m, contract.pdf.p7m.
That is why double-clicking a .p7m often does nothing useful. The operating system does not know there is a PDF inside, and a PDF reader does not recognise the envelope. You need a program that reads the format, verifies the signature and then gives back the document exactly as it was when signed.
In Italy the .p7m is everywhere: filings in the electronic civil trial system, documents to and from public offices, company records and annual accounts, signed e-invoices. A document signed several times, one envelope inside another, can end in .p7m.p7m.
Free programs that open it
AgID explains that verifying the signature and extracting the signed objects can be done with any software that complies with CNIPA Resolution no. 45 of 21 May 2009. The same page lists programs their makers offer as free downloads, and online verification services.
| Tool | Kind | What the official pages say |
|---|---|---|
| ArubaSign | Program | Free download per AgID; builds for Windows, Mac and Linux (DEB, RPM) |
| Infocert Sign (formerly GoSign and Dike) | Program and app | On AgID's list as GoSign; a Free licence exists; Windows 10 64-bit, macOS 14, Ubuntu 22.04, iOS and Android |
| Namirial Sign, DigitalSign Reader, Firma OK!, PkNet | Programs | Free download per AgID |
| InfoCert verifier | Online | Per AgID it also checks PDF signatures (PAdES) |
| Namirial verifier | Online | Per AgID also PAdES and certificates from qualified EU providers |
| National Council of Notaries | Online | On AgID's list of verification services |
| European Commission DSS | Program and online demo | Free to download and use per AgID |
An installed program reads the file on your computer. An online verifier is handier, but the document is sent to the operator's website, so for confidential filings, contracts with personal data or medical papers the program is the better choice.
Open and verify a .p7m, step by step
- Download the program from its maker's page, not from a general download site. For ArubaSign that is the software and drivers page on pec.it, for Infocert Sign the product page on firma.infocert.it.
- Open the program, choose its verify function and pick the .p7m file, or drag it into the window.
- Read the result for each signature: who signed, who issued the certificate, the signing date and whether the certificate was valid and not revoked at that moment.
- Check that the signer is the person you expect. An intact signature by someone else is still someone else's signature.
A good result tells you two things: the content has not changed since signing, and the signer's certificate came from a recognised provider. It says nothing about whether what the document states is true.
Get the PDF out of the envelope
AgID speaks of verifying and of extracting the signed objects, and the programs on its list do both: after the check you save the document held in the envelope. What you get is the original PDF, which opens in any reader.
On a Mac and on Linux, and on Windows where it is installed, there is also OpenSSL, a command-line tool:
openssl cms -verify -noverify -inform DER -in contract.pdf.p7m -out contract.pdf
The command writes the PDF and checks that the content matches the signature. The -noverify option skips the certificate check, though, so you don't learn whether it was valid, revoked or issued by a qualified provider. It is fine for reading a document you already trust, not for deciding whether a signature holds.
Remember that the extracted PDF does not carry the signature. The signature stays in the envelope, so keep the .p7m as the original and use the PDF only as a reading copy.
.p7m or signed PDF: CAdES and PAdES compared
An Italian digital signature comes in two main formats. CAdES produces the .p7m; with PAdES the signature goes inside the PDF itself, which keeps its .pdf extension.
| CAdES (.p7m) | PAdES (signed .pdf) | |
|---|---|---|
| What it can sign | Any file: PDF, Word, XML, images | PDF only |
| Opens in a PDF reader | No, needs a verifier | Yes |
| Signature visible on the page | No | Optional |
| Checked in Acrobat Reader | No | Yes, in the signatures panel |
| Several signatures | Nested envelopes or parallel signatures | Successive signatures in the same PDF |
If the choice is yours and the recipient accepts a PDF, PAdES is easier on the person receiving it: they open and check it in the reader they already have. The .p7m is still needed when a platform asks for it or when the signed document is not a PDF.
What Eddocu does, and what it doesn't
Eddocu does not open .p7m files, does not verify their signature and does not extract the document from the envelope. Use the tools above for all of that. Once the PDF is out, Eddocu helps with the work on the document:
- Edit and annotate. Open the PDF in the Eddocu apps for Windows, Mac, Linux, iPhone, iPad and Android, offline too, or in the editor on the website with a free account. You can correct text, highlight and comment.
- Sign with a certificate file. Digital Sign PDF (beta, in the apps) signs with your .p12 or .pfx file on the device and puts the signature inside the PDF.
- Read the signatures in a PDF. Validate Signature (beta) shows the signatures held in a PDF, so PAdES ones, not those of a .p7m envelope.
The limits, plainly. Eddocu signs only with a certificate file: smart cards, USB tokens and the remote signatures of Italian providers do not work in Eddocu, so keep using your provider's software for your qualified digital signature. Also, any change to the extracted PDF makes a new document that the envelope's signature no longer covers. For more on certificates and checking signatures, see our guide to certificates for your documents.
Common problems
- The file opens as unreadable text. A text editor or PDF reader tried to open the envelope. Open it with a verifier.
- Renaming the file to .pdf does not work. Dropping .p7m from the name does not remove the envelope: the signature and certificate are still wrapped around the document.
- Extraction gives you another .p7m. The document was signed more than once. Verify and extract the inner file again.
- The certificate shows as expired. What matters is whether it was valid when the document was signed. A timestamp proves that; without one, the verifier may flag it.
- An invoice arrives as .xml.p7m. It is a signed Italian e-invoice. Extraction gives you the XML, which your invoicing software reads.
Facts checked on 4 December 2026 on: AgID, Software di verifica, Infocert Sign, Aruba software and drivers and InfoCert's signature check.
FAQ
Can I open a .p7m without installing anything?
Yes, with an online verifier from AgID's list. The file is uploaded to that site, so for confidential documents a program on your computer is better.
Is the extracted PDF still legally signed?
The PDF on its own holds no signature. The signed original is the .p7m: keep it, and send that when the signed document is required.
Does Eddocu open .p7m files?
No. Extract the PDF with a verifier first, then open it in Eddocu to edit it, annotate it or sign it with a certificate file.
What is the difference between .p7m and .p7s?
A .p7m holds the document together with the signature. A .p7s holds only the detached signature and is checked together with the original file that comes alongside it.


