How to verify a P7M digital signature on iPhone or Mac

A .p7m file is a signed envelope: the document you want is inside, wrapped with a digital signature. Opening it is one job. Knowing whether the signature holds up is another, and the two need different tools.

Updated

On this page
  1. From difficult file to readable document.
  2. What verifying a P7M actually means
  3. The options compared
  4. What EU Docs checks, and what it leaves out
  5. When another tool fits better
  6. Privacy trade-offs
  7. Reading a mixed result
  8. Limits of any app-based check
  9. If the document does not display as expected
  10. Questions about this file type.

From difficult file to readable document.

  1. Keep the original .p7m untouched

    Save the file in Files exactly as received and work on a copy. Renaming it to .pdf or .xml does not unwrap the signature, and re-saving it can break the signature you want to check.

  2. Open it in a tool that checks signatures

    Pick the route from the comparison below. An unwrap-only tool gives you the content but no verdict, so confirm that the tool lists signer details and a result before you rely on it.

  3. Read each result separately

    A good check does not collapse everything into one green tick. Look at whether the signature matches the content, who the signer's certificate chain leads to, whether the certificate was valid when the file was signed, and whether a timestamp is present.

  4. Escalate when it matters

    If the file is evidence in a dispute, a tender or a filing, run it through an official validation service such as the EU DSS validation service or the AgID verifier and keep that report with the original.

What verifying a P7M actually means

A P7M file usually carries a CAdES signature: the signed content plus the signer's certificate and a cryptographic value. Verifying it answers several separate questions. Does the signature still match the content, or was the content altered? Does the signer's certificate chain to a trusted provider? Was that certificate valid at the moment of signing? Is there a trusted timestamp, and at which signature level (B, T, LT or LTA)?

Unwrapping the file, by contrast, only extracts the document inside. Plenty of tools do that well and say nothing about the signature. Our guide to what a P7M file is explains the container, and CAdES, XAdES and PAdES explains the signature families.

The options compared

Each route has a job it does best. Descriptions of the apps come from their App Store pages, so check the current page before you choose.

OptionBest forWatch out for
EU Commission DSS demonstration web appA second opinion from the European reference implementationYou upload the file to a web service, and the Commission describes the tool as a demonstration, not a production or qualified validation service
InfoCert Sign (iPhone and iPad)Verifying signatures and timestamps with a verification report, if you already work with InfoCertBuilt around InfoCert's signing service; remote signing needs an InfoCert account
P7M Viewer (Filippo Maguolo)Opening a P7M, reading the content and looking at the signers' certificatesRead its page for how far the signature check goes before you rely on it
P7M -> PDF: Estrai PDF da P7M (Pizero Design)Extracting a PDF and running a signature check against an Italian trust store, as its page describesFocused on PDF inside P7M, so other payloads need a second look
EU DocsOpening the P7M, reading invoices inside it and checking the signature offline, all on the deviceA screening check, not an official or legal validation

What EU Docs checks, and what it leaves out

EU Docs checks CAdES (P7M, P7S, ASiC), XAdES (signed XML invoices such as FatturaPA) and PAdES (signed PDFs) signatures, plus TSD and M7M timestamped files, on the device. It checks them against the EU trusted lists bundled in the app and shows the results separately: signature matches the document, signer's certificate chains to a provider on the EU trusted lists and is qualified, valid at signing time, trusted timestamp, and signature level B, T, LT or LTA. PDFs changed after signing are flagged.

It never goes online for the check. Revocation of the certificate chain is evaluated only when revocation data is embedded in the signature, so a certificate revoked after signing may not show up. The result helps you spot problems; it is not an official validation. EU Docs runs on iPhone and iPad with iOS or iPadOS 17 or later, and on Mac with macOS 14 or later.

When another tool fits better

If you need a verdict you can attach to a legal file, use an official validation service. If your whole workflow already lives in InfoCert's service, InfoCert Sign keeps it in one place. If you only want the document out of the envelope, a simple unwrap tool is enough. And if the file contains an invoice that must be booked, the final home for it is your accounting system, not a viewer.

Privacy trade-offs

A signed file often holds contracts, tax numbers and bank details. Uploading it to any web service sends all of that outside your device. On-device apps keep the file local, which is the main reason to prefer them for real documents. Use an online service for non-sensitive samples, or when you have decided an upload is acceptable.

Reading a mixed result

A signature can match the content and still carry a warning, for example because the signer's provider is not on the trusted lists a tool uses, or because the certificate had expired by the time anyone checked. Treat each line on its own. A matching signature with an unknown provider tells you the content was not altered, but not who vouches for the signer. When a line is unclear, run the file through a second tool and compare.

Limits of any app-based check

Trusted lists change, certificates get revoked and national rules differ. A phone app cannot see the state of the world on the day a dispute is judged. Keep the original P7M, note the date you checked it and the tool you used, and escalate when the stakes are high.

If the document does not display as expected

Keep the original filename and check that the download is complete. Renaming XML, P7M or ASiC files to PDF does not convert them. If a signed container opens, check the type of its extracted payload: it may be an invoice, PDF or another format requiring its own reader.

For an invoice, compare the document identifier, supplier, currency, tax and total with the original fields. Report an unsupported format with its non-sensitive format/version details; avoid sending private documents unless you choose an appropriate support channel.

Authoritative references

Official specifications and public-sector documentation used to check the terminology in this guide.

Questions about this file type.

Can I verify a P7M signature on an iPhone?

Yes. Apps such as EU Docs, InfoCert Sign, P7M Viewer and P7M -> PDF open P7M files on iPhone, and some of them check the signature. Compare what each App Store page says it checks.

Is an app's signature check legally valid?

No. An app check helps you spot problems. For legal or evidentiary use, use an official validation service such as the EU DSS validation service or the AgID verifier.

Does EU Docs upload my P7M file?

No. The file is opened and checked on the device. The app has no document-upload service and checks signatures against EU trusted lists bundled in the app, without going online.

Why does a valid signature show a warning?

A signature can match the document while the signer's provider, certificate validity or timestamp raises a separate warning. Read each result on its own.

What is the difference between opening and verifying a P7M?

Opening extracts the document inside the envelope. Verifying checks the signature: whether the content was changed, who signed and whether the certificate was valid at signing time.

Does it work on a Mac?

Yes. EU Docs runs on Mac with macOS 14 or later, as well as on iPhone and iPad with iOS or iPadOS 17 or later.