PAdES, XAdES, CAdES
PDF signatures usually use PAdES, while XAdES and CAdES describe signature formats that can appear inside other containers. PAdES is defined for signatures embedded in PDF files, including how the signature bytes, timestamps, and validation data are stored so that verifiers can check the signature later. XAdES and CAdES focus on XML and generic CMS containers, respectively, and they describe how to add validation material such as certificate chains and revocation information. In practice, a PDF signature workflow often produces a PAdES signature that internally relies on CMS structures, which is where CAdES concepts show up.
To make this concrete, imagine a hospital uploads a signed PDF to a portal. The portal runs a validator that checks the signature integrity, then checks whether the signer certificate was valid at the signing time. If the portal cannot find the revocation status or the timestamp, validation may fail even though the signature cryptographically matches. That behavior depends on which PAdES level was produced and whether the signature includes the right long-term validation data.
One small detail that trips people up: some tools label “XAdES” when they actually generate a CMS-based signature with extra attributes, and some validators display only the outer container type. I saw this in a workflow around 2023 where the signature looked “XML-like” in metadata, but the PDF signature object was still a CMS structure. The UI was misleading, and the validator logs were the only reliable clue.
Common Pain Points
People often treat PAdES, XAdES, and CAdES as interchangeable labels, then get surprised when validation differs across systems. A signature format can be cryptographically correct and still fail policy checks because the verifier expects a specific profile, timestamping, or revocation evidence. Another recurring issue is confusing “signature validity at signing time” with “signature validity today.” Certificates expire, revocation endpoints change, and offline verifiers need embedded evidence.
Dependencies matter. PAdES profiles build on CMS signatures, and they add PDF-specific embedding rules. XAdES profiles build on XMLDSig and define how to attach qualifying properties. CAdES profiles build on CMS and define how to add signed attributes for long-term validation. If a system expects a PAdES-LT profile but receives a basic PAdES profile, it may still verify the cryptographic signature while rejecting long-term validation requirements.
Revocation handling is another frequent failure mode. Some signatures include OCSP responses, some include CRLs, and some include neither, relying on the verifier to fetch status online. When the verifier runs offline, or when the OCSP responder is unreachable, the signature may be marked “unknown” or “not validated,” depending on the validator’s policy. This is why timestamping and embedded validation data show up in many compliance requirements.
Finally, PDF processing can break signatures. If a PDF is modified after signing, even by a tool that “optimizes” the file, the byte ranges referenced by the signature can change. Some editors also rewrite object streams, which changes the structure without obvious visual differences. The signature might still be present, but the integrity check fails.
How To Choose And Verify
Pick The Right PAdES Level
For signed PDFs, start by selecting the PAdES profile that matches your verification and retention needs. If you only need “works today” checks, a basic PAdES profile may be enough. If you need long-term validation, you generally need a PAdES profile that embeds timestamp evidence and validation data so verifiers can validate after certificate expiry. Many organizations map this to retention periods and audit requirements, then choose a profile that matches those timelines.
In practical terms, check what your signing tool outputs. Some products expose a setting like “PAdES-LT” or “long-term validation,” while others hide it behind a “qualified” or “LTV” option. I once reviewed a batch of signatures where the signing service was configured for short-term validation, and the first failure appeared only after the signer certificate expired. The fix required re-signing with the long-term profile, which is why configuration audits matter.
Verify With Real Validators
Verification should be done with the same class of tools your recipients use, not only with a generic viewer. Use a validator that can show whether the signature includes timestamps and whether revocation evidence is embedded. For example, many validators show a chain status, a “time of signing” timestamp, and whether OCSP or CRL data is present. If your validator reports “revocation data missing,” you can treat that as a concrete action item rather than a vague warning.
When testing, validate the exact PDF bytes that will be distributed. Download the file from the portal, then verify the downloaded copy. PDF portals sometimes repackage files, and that can invalidate the signature. A quick test with two copies, one from the signing system and one from the recipient portal, often reveals whether the portal modifies the PDF.
Understand XAdES And CAdES
XAdES and CAdES matter when your signing workflow uses XML documents or CMS signatures outside PDFs, or when a PDF signature tool internally relies on CMS attributes that resemble CAdES concepts. XAdES is tied to XMLDSig, so it does not directly apply to a PDF signature container. CAdES is tied to CMS, which is commonly used under the hood for many signature systems, including PDF signatures.
If you are building an integration, treat XAdES and CAdES as “format contracts” for the container you are signing. Then treat PAdES as the contract for embedding and qualifying that signature inside a PDF. Mixing expectations leads to validation failures that look like cryptographic errors but are actually profile mismatches.
Plan For Revocation Evidence
Decide how revocation status will be handled. If you rely on online OCSP checks, you need a stable network path and a policy for what happens when OCSP fails. If you need offline validation, you need embedded revocation evidence and timestamps. Many validators can tell you whether the signature includes OCSP responses or CRLs, and whether those are fresh enough for the signing time.
As a practical measurement, run a validation test after disconnecting from the network. If the validator still produces a “valid” result offline, the signature likely contains enough embedded evidence. If it fails offline, you can expect problems in long-term archives unless you upgrade the signing profile.
Case Examples
Example 1: Portal Rejects After Expiry
A clinic signs discharge summaries as PDFs and uploads them to a patient portal. For the first few months, the portal validates signatures successfully. After the signer certificate expires, the portal starts rejecting documents with a message that revocation status cannot be confirmed. The clinic checks the signature properties and finds that the PDFs were signed with a profile that did not embed long-term validation data. Re-signing with a long-term PAdES profile resolves the issue, and the portal can validate offline using the embedded evidence.
Example 2: “Optimized PDF” Breaks Integrity
A contractor signs a PDF agreement, then runs a PDF optimization tool to reduce file size before sending it. The recipient receives the signature object, but validation fails with an integrity error. The optimization tool rewrites internal PDF objects, changing the byte ranges referenced by the signature. The contractor switches to a signing workflow that prevents post-sign modifications, and validation succeeds because the signed byte ranges remain unchanged.
PAdES XAdES CAdES Checklist
| Question To Ask | What To Look For | Likely Outcome | Action If Missing |
|---|---|---|---|
| Is this a PDF signature? | Signature is embedded in the PDF signature field | PAdES is the relevant profile | Use a PAdES-capable signing tool |
| Does it support long-term validation? | Timestamps and embedded revocation evidence are present | Validation can work after expiry | Switch to a long-term PAdES profile |
| Is revocation evidence embedded? | OCSP responses or CRLs are included in signature data | Offline validation is more likely | Enable LTV-style embedding in signing |
| Does the recipient portal modify PDFs? | Downloaded copy differs from signed bytes | Integrity checks fail | Verify the exact bytes after upload/download |
| Are you mixing container expectations? | XAdES expected for XML, CAdES for CMS, PAdES for PDF | Profile mismatch causes rejection | Align signing and validation profiles |
Step-by-step checklist for a test batch: sign 3 PDFs with your current configuration, validate them online, validate them offline, then upload them to the recipient portal and validate the downloaded copies. If any stage fails, record the exact validator message and the signature properties shown by the tool. That message usually points to a missing timestamp, missing revocation evidence, or a PDF byte-range change.
Common Mistakes
One mistake is trusting a single viewer’s “signature is valid” badge. Many viewers show cryptographic integrity without confirming long-term validation requirements like embedded revocation evidence. Another mistake is assuming that certificate expiry alone determines validity. In many policies, a signature remains acceptable if it was signed while the certificate was valid and if the signature includes evidence to support that claim.
People also confuse “format name” with “profile behavior.” A signature may be labeled as a certain type, yet the embedded properties may not match the profile your verifier expects. This mismatch often appears after a compliance upgrade at the receiving side, when validators start enforcing stricter checks.
PDF editing after signing is a predictable failure. Even adding metadata, compressing images, or saving through a different PDF engine can change the signed byte ranges. If your workflow includes scanning, OCR, or redaction, treat those steps as pre-sign only, then freeze the PDF bytes before signing.
Finally, teams sometimes ignore tool version differences. A signing tool update can change default profile settings or how it embeds timestamps. I saw a case where a service updated from a 2.x release to 3.x and silently changed the default revocation embedding behavior, and the next audit found older signatures validated while newer ones did not. Version pinning and configuration export help here.
FAQ
Which Format Should I Use For PDFs?
Use PAdES for signatures embedded in PDF files. XAdES applies to XMLDSig containers, and CAdES applies to CMS-based signatures outside the PDF embedding rules.
Why Does A Signature Validate Today But Not Later?
Certificates expire and revocation evidence may not be embedded. If the signature lacks long-term validation data or a trusted timestamp, validators may fail after the signing certificate is no longer usable for online checks.
Do XAdES And CAdES Matter For PDF Signing?
They matter when your signing system uses CMS structures internally or when you sign non-PDF documents. For PDF signatures, the verifier’s expectations focus on PAdES profile properties embedded in the PDF signature.
What Causes “Integrity” Failures In Signed PDFs?
Any post-sign modification that changes the byte ranges referenced by the signature, including PDF optimization, re-saving, or portal repackaging, can break integrity checks.
How Can I Test Long-Term Validation Without Waiting Years?
Validate offline and simulate expiry by using a validator that checks embedded timestamps and revocation evidence. If offline validation succeeds and the signature includes timestamps and revocation data, the signature is more likely to remain verifiable after expiry.
Author's Insight
PAdES, XAdES, and CAdES describe signature profiles for different container types, and the container rules drive how validation evidence is stored. In PDF workflows, the practical question is not the label on the signature, but whether the signature includes timestamps and revocation evidence that match the verifier’s policy. Many failures come from missing long-term validation data or from PDF byte changes after signing. A careful way to reduce surprises is to test the exact PDFs that recipients will receive, including offline validation and portal round-trips, then record validator messages tied to signature properties.
Key Takeaways
- PAdES fits signed PDFs; XAdES fits XMLDSig; CAdES fits CMS signatures outside PDF embedding rules.
- Validation depends on profile properties like timestamps and embedded revocation evidence, not only on cryptographic integrity.
- Test with the same validator class your recipients use, and validate the exact bytes after upload and download.
- Prevent post-sign PDF modifications, since even “harmless” PDF processing can break signature integrity.