Menu
Open a P7M

Blog

Verify a P7M file signature

How to verify a P7M file signature: integrity, the certificate and revocation, what the reader can show and what a technical check cannot decide.

Lettore P7M8 min read

Published
Updated

Open a .p7m file

Drop it anywhere on this page.

Free: open, signature check, first page or invoice summary.

Or paste a file, where supported by your browser.

Files up to 100 MB. The document stays on your device.

“Verify the signature” is the phrase people use when they want a blunt answer: yes or no. A .p7m file does not reduce to a traffic light. The envelope can be intact and the certificate absent from the trusted list. The PDF can already be readable and revocation unavailable. One signer can be the person you expected and a second signer not. This guide puts the checks in order, says what the reader shows and what it cannot declare for you.

The check happens in the browser, in the same tool you use to open a P7M file online. The document is not uploaded in order to be checked. You can start from the P7M reader or from home. Reading the text is a nearby but different gesture: Read a P7M file explains it.

Three questions, not one

When the envelope opens, keep three questions apart.

  1. Integrity. Do the content bytes match the bytes that were signed? If they do not, the copy is not the signed one, even if the PDF “shows”.
  2. Certificate and chain. Is the issuer recognised in the trusted list in use, and does the certificate’s validity period cover the moment you care about? An unknown certificate does not become trusted because the plain name looks right.
  3. Revocation. Did the issuer cancel or suspend the certificate before expiry? This check needs current, authentic evidence. If it does not arrive, the result is unavailable.

One colour, or one tick, does not answer all three. The reader keeps them distinct so they do not collapse. AgID’s note on qualified electronic signatures describes the setting. The CMS standard describes the structure. Neither turns a technical check into a judgment on the contract.

How to run the check without skipping a result

  1. Use the original envelope, with the name you received. A PDF already extracted does not contain the CAdES signature. Removing .p7m from the name is not a verification. If the file will not open, start from a P7M file will not open before you interpret a result that is not there.
  2. Read enough of the content to recognise the document: the parties, the date, the invoice number. Verifying the signature on the wrong file is technically possible and useless.
  3. Take the signers one by one. Several signatures on the same content stay listed. They do not become one subject called “the office”.
  4. Read integrity, the chain and revocation as three lines, not as an average.
  5. If a result is expired or revoked, do not summarise it from memory. An expired or revoked signature explains those cases and their limits, including the difference between a claimed date and time evidence.

For revocation the service receives certificate identifiers and the addresses of the issuer’s services. It does not receive the document and it does not receive the file name. If the network is missing, or the service does not respond, the result stays unavailable even when the preview is already on screen. There is no second pass that “closes the gap as a yes”.

A file over 50 MB gets a warning. Above 100 MB it is not opened, so there is no result to quote. An envelope encrypted for a recipient stops: without the key there is no content to check. A detached signature, without the document, cannot check content that is absent.

Dates, time stamps and “before revocation”

The date in the signature attributes may be a statement by the person who signed. On its own it is not a time stamp. A time stamp needs further checks before it can be treated as a trusted date.

This boundary matters when the certificate shows as revoked. Saying the signature was already valid “before” needs verified time evidence, in the sense the reader indicates, not a date written by the signer. If that evidence is not there, the reader does not invent the sentence. Do not invent it in a note by copying only the signer’s name.

An expired certificate stays reported as expired. The claimed date does not prove it was valid at an earlier time. If you need that history, you need suitable evidence, not a screen read in a hurry.

Several signatures, countersignatures, nested envelopes

A contract signed by two people has two signatures on the same content, if both cover those same bytes. Check both. One intact and one not is not “enough”. In a filing or a tender, the signature that is missing is often the one you are asked for.

A countersignature is another layer. The reader marks it as unverified. Do not count it as a second check that passed. An envelope inside another envelope (atto.pdf.p7m.p7m) stays in separate layers. It is not merged into a PDF with every signature “inside”. If there are too many layers, the file does not open. It is not a PDF to fix in another program and then declare verified.

The difference between this envelope and a PDF signed internally, in PAdES, is another subject. P7M or signed PDF: CAdES and PAdES stops you calling an opened PDF a verification.

What you are not verifying

Some sentences circulate as if they were the result. They are not.

  • “It opens, so it is valid.” Opening shows the content. It does not close integrity, the chain and revocation.
  • “The file name contains the right surname.” The name does not take part in the signature.
  • “PEC certifies the signature.” The channel and the signature on the content answer different questions. P7M attachments in PEC keep the message, the receipt and the envelope apart.
  • “The extracted PDF is verified.” Extraction removes the envelope. Convert a P7M file to PDF is for reading, not for replacing the check.
  • “The invoice can be read, so SdI accepted it.” The view of an .xml.p7m invoice is not a submission and it is not a tax validation.

The reader does not offer regulated preservation. It does not replace a provider’s software when your organisation requires that tool for signing. It is not an opinion on the merits of the contract, the act or the tender offer. In a tender, the check before you send has its own setting: check P7M files before a public tender. In Italian court filings the line between envelope and copy is sharper still: P7M files in Italian court filings.

Where to do it, and what to write down

On Windows, Mac or a phone the check is the same, because it happens in the browser and not in an app tied to the system. The opening guides are still useful if a double click stops you first: Windows, Mac, Android and iPhone. The list of guides is where you pick the case without changing the file.

When you note the result, write the three lines, not a generic yes. Record the original file name, the signers, integrity, the certificate status and revocation, including “unavailable” when it is unavailable. Keep the envelope, not only a screenshot of the PDF. A screenshot cannot be checked again tomorrow.

The preview and these checks are free and do not require an account. See pricing. Downloading does not change the verification result and it does not turn a technical check into a qualified validation.

If two colleagues get different results, they should compare the same file. A truncated copy, incomplete Base64 or a PDF that was extracted and then checked “as if it were the P7M” produce different stories. Standard Base64 and PEM with PKCS7, CMS or SIGNED DATA labels open without a manual conversion. Text that uses - and _ instead of + and / is not accepted. In that case there is no signature that was “almost” verified.

Frequently asked questions

Does verifying a P7M mean the document is legally valid?

No. The check is technical: content integrity, the certificate and revocation when the evidence is there. It is not a qualified validation and it does not replace a view on the document’s weight.

If revocation does not respond, is the signature valid?

No. A service that does not respond leaves the result unavailable. That result is not promoted to a positive outcome, even if the PDF is already readable.

Is the date written in the signature a time stamp?

Not on its own. It may be a date claimed by the signer. A time stamp needs further checks before it is treated as a trusted date.

Is the file uploaded in order to verify the signature?

No. The content check happens in the browser. For revocation, certificate identifiers and the issuer service addresses are exchanged, not the document.

What to take with you

Verifying a P7M is reading three results on the original file, in the browser, without uploading the document and without promoting a network gap to a yes. Keep the envelope. Write the result out in full. If you need the content for reading, export it knowing that copy is not the verification. The starting point remains home, with the file still on your device.

Necessary functions

Reader resources and operations you request are separate from optional statistics. If you dismiss a service announcement, this device remembers its identifier so it does not appear again.

Optional statistics

Optional statistics are switched off. The anonymous file totals use no cookies or tracking.

Google Analytics (statistics)

With your consent we use Google Analytics 4 for aggregate visit statistics (pages viewed, device, referrer). Your documents are never sent. You can change your choice at any time from “Cookie preferences” in the footer.

Cookies and preferences