In earlier post we discussed the two basic electronic signature formats - XAdES and PAdES - most commonly used for qualified e-signatures. Continuing this topic, we will address another important issue: internal and external signatures.
Whether an electronic signature is embedded in a file or saved as a separate file is of great practical importance - especially when signing large files or working with complex ICT systems.
In this article, we explain what qualified internal and external signatures are and what they mean in the context of different formats (PAdES, XAdES, CAdES). We outline their main pros and cons, and suggest when it's a good idea to use each of these solutions.
What is an internal signature and what is an external signature?
An internal signature is one that is incorporated directly into the document being signed. To put it simply: when you sign a file with an internal signature, you get a single file, containing both the content of the document and the signature information (certificate, timestamp, etc.). The type of internal signature is available in PAdES and XAdES standards, among others - both allow you to place an e-signature inside the signed file. For example, the PAdES signature always saves the signature together with the PDF in one file, while XAdES can embed the signature as an element in the XML structure of the original document.
The external signature, on the other hand, is a separate file - once the document is signed, you get two (or more) files: the original document and a separate file with the digital signature. This external file (e.g., with an extension of .xades or .sig) contains cryptographic data confirming the signature, but does not contain the contents of the original document. Such qualified external signatures can be created in XAdES or CAdES formats. In practice, this means that to verify the signature and content, the recipient must have both parts - the document and the signature file. The absence of either will make it impossible to verify the authenticity of the signature and the contents of the document.
The difference between internal and external signatures boils down to the way the signature is placed - either inside the signed file or as a separate companion file.
However, it is important to emphasize that legally the two types are equivalent. Both qualified internal and external signatures meet the requirements of the eIDAS regulation and are considered legally binding. Thus, the choice of signature type mainly affects technical and usability issues - e.g., ease of storage, verification or transmission of documents - rather than the legal force of the e-signature itself.
Both types of signatures support add-ons like timestamps, signature policies, etc., enhancing long-term security.
PAdES format - signature in PDF file (internal signature)
PAdES (PDF Advanced Electronic Signature) is a qualified signature format designed exclusively for PDF files. In this standard, the electronic signature (and the signer's certificate) is embedded in the structure of the PDF - it becomes an integral part of the document. As a result, everything needed for verification is contained in a single file that can be opened in popular programs like Adobe Reader. What's more, PAdES makes it possible to add a visual representation of the signature on the document page (e.g., a graphic seal or signature information), which increases readability and makes the e-signature more similar to a handwritten signature on paper.
Advantages of the PAdES format
- We provide one consistent PDF file - the signed content and digital signature are integrated into the document. There is no need to include separate signature files.
- A visible graphic annotation appears in the document indicating the signature, making it easier for the recipient to identify the signed file.
- Integrity - The PAdES signature protects the document from modification after signing. Any change to the content of the PDF will invalidate the signature, so the recipient is assured that the document has not been altered.
- Ability to make multiple signatures in a single PDF - several people can sign the same file consecutively, and previous signatures will remain valid (subsequent signatures do not invalidate previous ones).
- Ease of use and verification - A PDF with a PAdES signature can be opened in a standard PDF viewer, and information about the validity of the signature is usually automatically shown. This makes PAdES the easiest solution for typical business and administrative situations.
Limitations of the PAdES format
- For PDF only - the PAdES format works only with PDF documents. If we need to sign a file of another type (e.g. DOCX, XML, JPG), it will be necessary to convert it to PDF or use another signature format.
- File size - although the digital signature itself takes up little space, with very large PDF files, embedding the signature increases the file size (the entire signed file, which can be tens or hundreds of MB, must be transmitted). In some situations, such as with the limitations of email systems or ePUAP, this can make transmission difficult. (In such cases, an external signature is sometimes the solution, as discussed further below).
- Lack of versatility - PAdES is great for PDF documents, but will not work where PDF is not accepted or where a different data structure is needed. In that case, you should reach for XAdES or CAdES .
XAdES format - XML signature (internal or external)
XAdES (XML Advanced Electronic Signature) is a universal electronic signature format, based on the XML standard. Itsadvantage is flexibility - virtually any type of file can be signed using XAdES: from text documents (DOCX, ODT), to PDF, images (JPEG, PNG), spreadsheets, ZIP files, to binary or XML data. In the case of structured data (XML), XAdES is even preferred because it allows computer systems to both verify the signature and automatically parse the contents of the document. For this reason, XAdES is sometimes required for electronic submission of forms and applications to institutions (e.g., PIT tax returns, Social Security applications), where data from the document is to be loaded into the computer system.
XAdES offers both internal and external signature modes. If you are signing an XML file, the XAdES signature can be embedded as an element inside that file (internal/external signature). On the other hand, for other file types (e.g., PDF, DOCX, JPG), an external XAdES signature is usually used - the signature will result in the original file plus a separate .xades file containing the signature. This separation causes some inconveniences: when signing, for example, a PDF in XAdES format, you always have to provide the recipient with two files and make sure that they verify the signature along with the document. Omitting the signature file or incorrectly associating it with the document will result in the signature not being considered valid. It is true that it is possible to create a single .xades file containing both the signature and the encoded content (e.g., a PDF in binary form) - this is known as a surrounding signature - but such a file is not directly readable by the user (you have to extract the original document from it first), so it is not very convenient in practice.
Advantages of the XAdES format
- Versatility - allows signing documents in formats other than PDF, including non-text files and complex archives. If we need to sign a file that cannot be opened as PDF - XAdES will be the right choice.
- Handling structured data - ideal for XML and similar documents where data content is important in addition to the signature itself. Systems can automatically interpret the data of a signed XML document using XAdES.
- Multiple signatures - XAdES allows you to attach multiple signatures to a single document (e.g., multiple XML signatures in a single file) or to sign multiple files simultaneously with a single external signature. This allows several people to sign the same dataset without creating separate copies of the document.
- Integrity and security - like other formats, the XAdES signature makes it impossible to change data after signing (changing the document will result in inconsistency with the signature).
Limitations of the XAdES format
- Less convenient for regular documents - when signing files that the recipient simply wants to read (e.g., a PDF for a client), using XAdES instead of PAdES is less friendly. The recipient will receive a PDF without a visible signature + a separate .xades file, which he or she must verify himself or herself in the appropriate application or service - an extra step that not everyone knows about.
- Risk of separation of the signature from the document - with an external signature, there is a possibility that the signature file is lost or separated from the original document. Then verification of the signature becomes impossible. So you need to be careful when transferring or archiving - always keep the signature with the actual document.
- Verification application required - .xades files will not be verified without using a special software or service. Unlike PAdES (a PDF opened in Acrobat Reader with built-in signature checking), here you need, for example, a dedicated qualified signature program or an online platform for validation.
- Less human readability - an XAdES signature (especially an external one) gives no visual indication in the document itself that it has been signed (unless, for example, an informative page is placed inside the PDF). The lack of a graphical representation of the signature may be less intuitive for people accustomed to document signatures.
Continued - in the second part of the article we will discuss the CAdES format and practical tips for choosing the type of signature.
You are welcome!
SimplySign and Certum Mini qualified signatures
If you have any concerns or questions, please contact us
We will answer your questions, find a date that suits you and an advisor in Gdansk, Gdynia, Krakow, Warsaw or Wroclaw.
You can also write an email from us [email protected].