PDF Signature Validation: Chains, Revocation, and the ‘Valid’ Trap

Most PDF readers report a signature as valid when the cryptographic math checks out against the embedded certificate. That statement is narrower than it sounds. It does not say the certificate belongs to a trusted authority, does not say the certificate had not been revoked at the time of signing, and does not say the signature covers the whole document rather than a fragment of it.

The short version: a signature is trustworthy when the chain resolves to a trust anchor you chose, the revocation state at signing time is known, and the signature covers the bytes you actually care about. Validation software that reports one green tick has collapsed those three questions into one.

Question one: does the chain resolve

PDF signatures embed a certificate, and often the intermediate certificates needed to build a path. Validating means constructing that path to a root you trust and checking each certificate’s constraints, key usage, and validity period. A document can carry a perfectly formed chain to a root that no mainstream trust store recognises, which validates cryptographically and means nothing commercially.

For internal documents this is usually fine, because the root is the organisation’s own. For anything crossing organisational boundaries, the trust anchor must be a public or contractually agreed one, and validating software must be configured with that anchor rather than accepting whatever chain arrives.

Question two: was it revoked at signing time

Certificates get revoked, and a signature made before revocation can still be valid if the signer’s certificate was good at that moment. This is the subtlety that catches most implementations: validation must use the revocation status as of the signing time, not as of today. Without that, an old but legitimate signature becomes indistinguishable from one made with a stolen key.

Practical validation therefore needs three things: a trusted timestamp proving when the signature was created, revocation information (OCSP response or a CRL) for that moment, and the storage of both so the assessment can be repeated later. Missing any one of them turns the question into an opinion.

Question three: what does the signature cover

PDF signing is incremental. A signature can cover the entire document as it existed, or a portion, and later revisions can be appended after it. A valid signature on an early revision says nothing about a page appended afterwards, which is how “signed and valid” documents end up with altered totals.

Viewers differ in how they present this. Some show a warning that the document has been modified after signing; others show a valid badge and a subtle icon. For anything consequential, read the signature’s coverage explicitly and confirm that the visible content is inside it.

Long-term validation

A signature that validates today may stop validating in five years, because the certificate expires and revocation data becomes unavailable. Long-term validation, usually described as embedding validation information plus a timestamp, extends the window by capturing the evidence at signing time and protecting it with a trusted timestamp that itself gets renewed.

Archives that must remain verifiable for a decade need this by design. A document signed with a plain signature and no timestamp is a document whose validity will quietly expire, and the expiry is discovered by whoever audits it years later.

Implementation choices that matter

Sign with a timestamp authority and store the token with the signature. Embed the chain, not just the leaf. Record the revocation response, and re-stamp before the previous timestamp’s algorithms age out. Use a signature field that covers the whole document and locks the fields that must not change.

Validate on the server rather than trusting the reader’s badge, and log the three answers: chain resolved to which anchor, revocation status at which time, coverage of which bytes. Those three lines turn a compliance question into a record.

The viewer’s badge is not a verdict

Every mainstream reader has a different threshold for the green tick. Some check only the cryptographic integrity of the signature value; some check the chain but not revocation; some check revocation only at the current time. Two viewers can therefore disagree about the same file, and neither is lying — they are answering different questions.

This matters when a counterparty sends a signed document and says their viewer showed it as valid. The correct response is to validate it yourself against a defined policy and record what your policy concluded, rather than to accept or dispute their badge. The disagreement is about standards, not about trustworthiness of the sender.

Policy as a document, not a setting

Write down the validation policy: which trust anchors, whether revocation must be checked and at what time, whether a timestamp is required, whether coverage must include all visible pages, and what happens when validation information is missing. Then implement the policy in one place and use it for every incoming document.

A written policy also gives an answer to the awkward case: a document signed with a certificate from an authority nobody recognises, arriving with an intact chain. Under a written policy that answer is immediate and consistent; without one, it becomes a conversation about who the sender is.

Keep the validated state, not just the verdict

Record the inputs to validation alongside the outcome: the certificate fingerprints, the revocation responses with their timestamps, and the hash of the covered bytes. A verdict without its inputs cannot be re-examined, and re-examination is exactly what happens when the document is disputed three years later.

What to check before you commit

  • Configure a specific trust anchor rather than accepting embedded chains.
  • Validate revocation as of signing time, using a trusted timestamp.
  • Check signature coverage, including revisions appended afterwards.
  • Embed the full chain and the revocation response with the signature.
  • Use long-term validation for anything archived beyond a certificate’s life.
  • Log chain anchor, revocation time, and coverage server-side.

Signature validation is three questions, not one. Software that answers all three and records the answers is the difference between a document that is signed and a document that can be defended.

Leave a Comment