LivePDF

Blog › Signing & forms

How to validate a digital signature in a PDF

· 6 min read

A signature panel is the only place in a PDF that will tell you whether the document changed after it was signed. Learning to validate a digital signature in a PDF means reading that panel correctly, and the panel is really answering two unrelated questions at once.

Most people treat the result as a single verdict: valid or bad. That shortcut is the source of a lot of unnecessary distrust. Integrity and trust are different checks with different fixes, and once you can tell them apart, a scary-looking warning turns into a plain diagnosis.

What a digital signature actually covers

A digital signature is not a picture of handwriting. It is a cryptographic operation over the file's bytes.

When a PDF is signed, the signature handler writes a /ByteRange into the signature object. That range is a set of byte offsets covering the entire file except the one gap where the signature itself is stored. A hash is computed over those bytes, then encrypted with the signer's private key and packed into the signature's Contents (usually a CMS or PKCS#7 blob). The PDF Association's note on validating PDF signatures describes this directly: the signed data is defined by the byte range, and the signature data is the one excluded hole.

Two consequences follow. The signature covers the whole document, not just the page it appears on, so a change on page 40 breaks a signature placed on page 1. And because a signature cannot cover itself, the format is built around that carved-out gap; bytes going into it are the signature, not content. Change any byte inside the range and the recomputed hash stops matching. That single comparison is what "modified since signing" means.

Three questions a validator asks

Open the signature panel and the reader runs three checks, even when the interface shows one icon.

  1. Integrity. Recompute the hash over the byte range and compare it with the hash stored inside the signature. A match means the signed bytes are unchanged.
  2. Signer identity as certified. Read the accompanying certificate and see what name it carries. This is a claim made by the certificate, not a fact about the person who used it.
  3. Trust. Check whether that certificate chains to something the reader already trusts: a root in its trust list, a corporate CA, or a public list such as Adobe's AATL or the EU's EUTL. If the chain terminates nowhere trusted, the reader cannot vouch for the certificate.

Integrity and trust are independent. A file can be perfectly intact and signed by a certificate your reader has never heard of. That combination produces the warning that confuses people most.

How to check a signature in a reader

Panel names vary by product, but the layout is consistent.

In an Adobe-style reader, open the PDF and find the Signatures panel (in Acrobat it lives on the right-hand tool rail, or under View > Show/Hide > Side panels > Signatures). Click the signature to select it and read the status line at the top of the panel. You can often click the signature on the page itself to get a pop-up with the signer, the signing time, and the status. A padlock icon and a colored banner usually carry the same information in visual form.

LivePDF takes the same approach with a signatures panel that reports whether the file's bytes changed since signing. It can create cryptographic signatures from a .pfx/.p12 file or a locally generated self-signed ID, and the panel is what you read afterward. What LivePDF is not is an identity-verifying signing service: it does not confirm that the name inside a certificate belongs to a real person, so its panel speaks to integrity, and to identity only as far as the certificate itself claims.

What each warning state means

"Document has been altered or corrupted since it was signed." Something inside the signed byte range changed after signing. This is an integrity failure. It can be innocent, such as a form field filled in after signing, or deliberate, such as a number edited in a contract. Either way, you can no longer treat the signed content as fixed and should go back to the signer.

"Signature validity is unknown" or "author could not be verified." The bytes are intact, but the reader cannot build a trusted path to the certificate. Nothing is broken; the reader simply has no basis to trust the issuer. In practice this is the more common warning, and it lands on self-signed certificates and small internal CAs most of the time.

"Signature is invalid." The hash did not match or the cryptographic check failed outright. Treat it as the first case until you know otherwise.

"Certified," with a note about permitted changes. A certifying signature is governed by the document's DocMDP settings, which declare what may be changed afterward: nothing, form filling, or form filling plus annotations. Changes inside what was allowed will not invalidate the signature; changes outside it will.

One warning, two causes

Here is the part worth carrying away. The two most alarming states, "the document was modified" and "the signature validity is unknown," come from completely different problems. The first means the file was not preserved. The second means the reader does not recognize the issuer. They arrive in the same warning box, in the same alarming tone, and the natural reading is "the signature is bad." So people distrust documents that are actually intact, and sometimes re-sign files that never needed it. Once you know the split, the warning stops being a verdict and becomes a diagnostic: which of the two questions failed?

What validation cannot tell you

A valid signature proves the bytes are unchanged and that whoever holds the private key produced the signature. It does not prove the signer was authorized to sign that document. A junior employee with a valid certificate can sign a contract they had no authority to approve, and validation will show a clean result. Authorization is a question about your organization's rules, not about cryptography. It is the same gap that makes a self-signed certificate weak evidence of identity, which is the subject of creating and using a digital signature certificate.

Tool limits, too: Signature creation and validation depend on the certificate and the viewer. LivePDF signs with a .pfx/.p12 or a self-signed ID and reports integrity, but it is not a qualified or legally-binding e-sign service; it does not verify identity the way a paid platform does. For identity claims that must survive a stranger's scrutiny, use a trust service or a workflow with identity checks. And if you are not sure whether a file is protected at all before you start, that is a separate question with its own answer, covered in is my PDF encrypted?.

Checking a signature you received

A short routine for the practical case.

  1. Open the Signatures panel and select the signature. Note the status and the signing time; a signature dated before a document's stated validity is its own red flag.
  2. If the status is "unknown," open the certificate details. Check the issuer name and the fingerprint. If the signer is someone you know, confirm the fingerprint with them out of band.
  3. If the status is "modified," stop treating the document as signed and ask for a clean copy.
  4. If you need to trust a self-signed signature repeatedly, add its root to your trust settings rather than dismissing the warning every time.

For the signing side rather than the checking side, the mechanics are in how to sign a PDF. The certificate questions, including what a self-signed ID does and does not prove, sit alongside this one in the signing cluster.

Sources and further reading

Word count: 1331

FAQ

Does a valid signature mean the PDF is safe to trust?

It means the file hasn't changed since it was signed and that someone holds the private key behind the certificate. It does not prove the signer was authorized to sign, and it proves identity only as far as the certificate's issuer does. Treat it as evidence about the file, not a character reference for the person.

Why does my PDF say the signature validity is unknown?

The bytes are intact, but your reader can't build a trusted path to the certificate's issuer. This happens constantly with self-signed certificates and small internal CAs. It is an identity-and-trust warning, not a statement that the file was altered.

Can I validate a signature without uploading the document?

Yes. Validation is a local computation over the file's bytes, so a desktop reader or a browser tool that runs client-side can do it without sending anything to a server. LivePDF reports integrity in its signatures panel without an upload.