What Is PAdES? PAdES vs CAdES vs XAdES, Which to Use
PAdES vs CAdES vs XAdES compared: PAdES signs inside the PDF, CAdES detached (.p7s) or attached (.p7m), XAdES for XML. Levels B-T to B-LTA and which to use.
PAdES, CAdES and XAdES do the same job: they produce an advanced electronic signature that proves who signed a document, when, and that the document has not changed since it was signed. The difference is where the signature sits and which type of document it suits. All three belong to the AdES (Advanced Electronic Signature) family of ETSI, the European standards body.
Short answer
| Format | Standard | Where does the signature sit? | Best suited for |
|---|---|---|---|
| PAdES | ETSI EN 319 142 | Inside the PDF file | Documents people will open and read: contracts, reports, petitions |
| CAdES | ETSI EN 319 122 | In an envelope wrapping the document or in a separate .p7s file | Any type of file; official e-correspondence |
| XAdES | ETSI EN 319 132 | Inside or next to the XML document | Machine-to-machine documents: XML such as UBL-TR e-Fatura |
| ASiC | ETSI EN 319 162 | In a ZIP container carrying the document and the signature together | Signing several files in a single package |
What is PAdES?
PAdES (PDF Advanced Electronic Signatures) embeds the signature in the PDF file's own structure. The signed document is still a PDF: the recipient opens it with a PDF reader such as Adobe Acrobat Reader without needing any extra program, and sees in the signature panel who signed it and whether the document has changed. It can also carry a visible signature field on the page.
Because PDF allows incremental updates, several people can sign a document one after another; each signature preserves the version before it. That makes it a practical choice for contracts with an approval chain. Its limit comes from the same place: PAdES signs only PDFs.
How to add a PAdES signature to a PDF
- Certificate and device: Your qualified electronic certificate must be on a secure signature creation device: a smart card, token, HSM or mobile signature.
- Program: Open the PDF in an electronic signature program and select PAdES as the signature format. ELPO's İmzacı program signs PDFs with a smart card.
- Signing: Enter your card's PIN. The output file is still a PDF; the signature is inside the file.
- Verification: The recipient opens the PDF in a reader such as Adobe Acrobat Reader. The signature panel shows who signed it and whether the document has changed since.
If several people will sign the document in turn, each signer repeats the same steps with their own card; a new signature does not break the earlier ones. For a document that will be kept for years, choose the B-LT or B-LTA level described below.
What to look for when choosing PDF signing software
People who search for "PDF signing software", "PDF signing app" or "PDF signing tool" can mean one of two different things. The first is a visual signature drawn or placed on the page: the signature image is visible in the PDF, but it proves neither the signer's identity nor that the document has not changed since. The second is an electronic signature made with a qualified electronic certificate (PAdES): the signature is embedded in the PDF, and under Article 5 of Turkey's Electronic Signature Law No. 5070 (5070 sayılı Elektronik İmza Kanunu) a secure electronic signature has the same legal effect as a handwritten signature.
- Qualified certificate support: the software must be able to sign with the qualified certificate on a smart card or token.
- PAdES format: the signature must live inside the PDF, not in a separate file; the recipient opens the document in a reader such as Adobe Acrobat Reader and sees the signature.
- Level selection: for a document that will be kept for years, you must be able to choose B-LT or B-LTA (see below).
ELPO's İmzacı software signs PDFs in PAdES format with a smart card.
What is CAdES?
CAdES (CMS Advanced Electronic Signatures) is based on the CMS (RFC 5652) structure and does not care about the file type: Word, Excel, images, ZIP — anything can be signed. The signature is carried in one of two ways: as an envelope containing the document, or as a separate file (.p7s) sitting next to the document.
The drawback is on the recipient's side: opening a signed file in envelope form and verifying the signature requires an e-signature application. In Turkey, CAdES is the most common format for e-signed official correspondence.
CAdES detached vs attached: what is the difference?
The two ways of carrying a CAdES signature have names. In an attached (enveloping) signature the signed content is placed inside the CMS SignedData structure, so a single file (usually .p7m) holds both the document and the signature. In a detached signature the content is left out of the structure (RFC 5652 allows the encapsulated content to be absent): the .p7s file holds only the signature, and the original file has to be kept next to it unchanged.
- Verifying a CAdES detached signature needs both files. If even one byte of the original file changes, or the wrong file is paired with the .p7s, verification fails.
- Detached suits large files and cases where the original must stay openable in its own program without an e-signature application.
- Attached suits sending one self-contained file; the recipient needs an e-signature application to extract the document.
How to create a CAdES signature
- Certificate and device: Your qualified electronic certificate must be on a secure signature creation device: a smart card, token, HSM or mobile signature.
- Format: Open the file in an e-signature application, select CAdES as the signature format and choose attached (one .p7m file holding document and signature) or detached (a separate .p7s file next to the original).
- Signing: Enter your card's PIN. With attached, you get one file. With detached, the original file stays as it is and a .p7s file is created next to it.
- Verification: The recipient verifies the signature with an e-signature application, not a PDF reader. A detached signature needs both files; if a single byte of the original changes, verification fails.
To create and verify CAdES signatures inside your own software, ELPO's eSignature e-signature library produces them up to the long-term archive level (B-LTA).
What is XAdES?
XAdES (XML Advanced Electronic Signatures) is built on the W3C XML signature standard (XMLDSig) and is meant for XML documents. The signature can be embedded inside the XML (enveloped), wrap the XML (enveloping) or stand apart (detached). It is designed for cases where the document will be read by software rather than a person; it is used in XML-based documents such as e-Fatura (Turkey's e-invoice) in UBL-TR format.
What is ASiC for?
ASiC (Associated Signature Containers) carries the signed document and its signature together in a single ZIP container. ASiC-S is for a single document, ASiC-E for more than one. The signature inside can be CAdES or XAdES; ASiC is not a new signature type but a way of transporting it.
Levels: B-B, B-T, B-LT, B-LTA
The format answers the question "where does the signature sit"; the level answers "how long can the signature be verified". ETSI's baseline profiles have four levels:
- B-B (Basic): the signature, the signer's certificate and the signed attributes. It verifies while the certificate is valid.
- B-T (Timestamp): a trusted timestamp is added; it proves the latest moment at which the signature was made.
- B-LT (Long-Term): the certificate chain and revocation status (CRL, OCSP) are embedded in the signature; even if the certificate later expires, the validation data stays with the document.
- B-LTA (Long-Term Archive): an archive timestamp is added and can be renewed; even if the cryptographic algorithms used become outdated, the signature keeps its evidential value.
In the older ETSI naming the same steps appear as BES, EPES, T, C, X, XL and A; many applications and documents in Turkey still use these names. For a document that will be kept for years (contract, archive, payroll) choose at least B-LT, preferably B-LTA; for a routine, short-lived approval B-T is usually enough.
Which one should you choose?
- If a person will open and read the document and it is a PDF: PAdES. The recipient installs no extra program.
- If the document is XML and software will process it: XAdES.
- If the file is neither PDF nor XML, or the other party asks for CAdES: CAdES.
- If several files are to be signed in a single package: ASiC-E.
- If an official letter is going to a public institution: the format is not your choice; the rules of the e-Yazışma (Turkey's official e-correspondence) package decide.
Does legal validity depend on the format?
No. In Turkey, under Electronic Signature Law No. 5070, a secure electronic signature has the same legal effect as a handwritten signature. What determines this is less the format than the fact that the signature was made with a qualified electronic certificate and a secure signature creation device (smart card, token, HSM or mobile signature). PAdES, CAdES and XAdES are different containers carrying that signature.
On the ELPO side
For users who want to sign on the desktop without writing code, İmzacı signs PDF and XML with a smart card, prepares e-Yazışma packages and does folder-based batch signing. For teams that want to build signing into their own software, the eSignature e-signature library produces and verifies CAdES, XAdES, PAdES and ASiC formats up to the long-term archive level; since each format is a separate package, only what is used goes into the project. The general introduction to both products is on the e-İmza page.