A digital signature in LibreOffice is a cryptographic stamp that confirms a document came from you and hasn't been altered since you signed it. It is not the same as a scanned handwritten signature or a typed name. To use it, you need a personal digital certificate (often called a signing certificate) installed on your computer, then you open the document in LibreOffice, choose File > Digital Signatures > Sign Existing PDF (for PDFs) or File > Digital Signatures > Sign Document (for ODF files), select your certificate, and confirm. The signature is embedded in the file and can be verified by anyone who opens it with compatible software. The exact menu labels can differ slightly by LibreOffice version, operating system, and region, but the path is generally under the File menu.
What a Digital Signature Actually Is
A digital signature is a mathematical scheme that uses public-key cryptography. When you sign a document, LibreOffice creates a hash of the file's contents and encrypts that hash with your private key, which is stored securely on your computer or a smart card. The result is a signature block that anyone can check using your public key, which is included in your certificate. If even one character in the document changes after signing, the hash no longer matches and the signature is reported as invalid. This is why digital signatures are used for contracts, invoices, and official forms where tamper-evidence matters.
LibreOffice supports digital signatures in two main ways: for its native OpenDocument Format (ODF) files (Writer, Calc, Impress) and for PDF files that you export. The signature is stored inside the file itself, so it travels with the document when you email it or upload it. LibreOffice does not provide certificates itself; you must obtain one from a certificate authority (CA) or create a self-signed certificate for internal use. Self-signed certificates are fine for testing or within a small team, but they will show as untrusted on other people's machines unless they install your certificate as trusted.
How to Sign a Document in LibreOffice
Before you start, make sure you have a digital certificate installed in your operating system's certificate store or in LibreOffice's own certificate store. On Windows, certificates are managed through the Certificates snap-in or Internet Options; on macOS, through Keychain Access; on Linux, through the certificate store used by your distribution (often under ~/.pki or the system's NSS database). LibreOffice can also use certificates stored in Firefox if configured, but the simplest path is to use the system store.
Here are the steps to sign an ODF document (Writer, Calc, or Impress):
- Open the document you want to sign.
- Go to File > Digital Signatures > Sign Document. (In some versions, this may appear as File > Digital Signatures > Sign Existing PDF if you are working with a PDF.)
- A dialog box appears listing available certificates. If none are listed, click Add or check that your certificate is installed correctly.
- Select your certificate and click Sign.
- You may be prompted to enter the password for your private key.
- Save the document. The signature is applied when you save.
For PDF files, the process is slightly different. You can sign a PDF that you have open in LibreOffice Draw, or you can sign a PDF during export from Writer or Calc. To sign an existing PDF, open it in LibreOffice Draw, then go to File > Digital Signatures > Sign Existing PDF. Choose your certificate and save. Note that LibreOffice's PDF signing creates a signature that is compatible with standard PDF readers, but it may not support all advanced signature features like timestamping unless you configure a timestamp authority.
To verify a signature, open the signed document and go to File > Digital Signatures > Show Signatures. A dialog will display the signature status: valid, invalid, or unknown. A valid signature means the document has not been modified since signing and the certificate is trusted. An invalid signature means the document was altered after signing or the signature is corrupted. An unknown status usually means the certificate is not trusted on your system; you can choose to trust it manually if you know the signer.
Choosing and Obtaining a Certificate
You cannot sign a document without a certificate. Certificates come in different types, and choosing the right one depends on your use case.
- Self-signed certificates: You create them yourself using tools like OpenSSL or LibreOffice's built-in certificate manager (available in some versions under Tools > Options > LibreOffice > Security > Certificate Path). They are free and easy, but recipients will see them as untrusted unless they manually add your certificate to their trusted list. Use them for internal testing or within a closed group.
- Certificates from a public certificate authority (CA): Companies like DigiCert, GlobalSign, or Sectigo issue certificates that are trusted by default on most systems. These are suitable for business documents sent to external parties. They usually involve identity verification and a fee.
- Government-issued or organizational certificates: Some countries issue digital ID cards or USB tokens with signing certificates. These are often used for official documents and tax filings. Check with your local authority for availability.
When choosing a certificate, consider the level of trust required, the cost, and the convenience of use. Hardware tokens (smart cards or USB keys) are more secure because the private key never leaves the device, but they require a reader and may not work on all systems without additional drivers. Software certificates stored on your computer are easier but more vulnerable to theft if your machine is compromised.
Common Problems and Fixes
Digital signatures can fail for several reasons. Here are the most common issues and how to address them.
- No certificates listed in the signing dialog: Your certificate is not installed in a location LibreOffice can see. Check your system's certificate store and ensure the certificate has a private key associated with it. On Windows, you can use the Certificates snap-in to verify. On Linux, ensure the certificate is in the NSS database that LibreOffice uses (often the same as Firefox's).
- Signature is invalid after signing: This usually means the document was modified after signing. Even opening and saving the file in some editors can change the internal structure and invalidate the signature. Always sign as the last step before distribution. If you need to make changes, remove the signature, edit, and re-sign.
- Signature shows as unknown or untrusted: The recipient's system does not trust the certificate authority that issued your certificate. For self-signed certificates, the recipient must manually trust your certificate. For CA-issued certificates, ensure the recipient's system has the root certificates updated.
- Cannot sign PDF: LibreOffice's PDF signing requires that the PDF be opened in Draw, not in Writer or Calc. Also, some PDFs with existing signatures cannot be signed again without removing the previous signature. If you need multiple signatures, consider using a dedicated PDF tool that supports incremental signing.
- Password forgotten for private key: There is no recovery. You will need to obtain a new certificate and re-sign the document.
Digital Signatures vs. Electronic Signatures
People often use the terms interchangeably, but they are not the same. An electronic signature is any electronic indication of intent to sign, such as a typed name at the bottom of an email or a scanned handwritten signature. A digital signature is a specific cryptographic technology that provides stronger evidence of authenticity and integrity. In many legal contexts, both can be valid, but digital signatures are more secure and harder to repudiate. LibreOffice's feature is specifically for digital signatures, not for simple electronic signatures. If you need a quick electronic signature, you can insert an image of your signature into a document, but that offers no tamper-evidence.
A common misconception is that signing a document in LibreOffice will automatically make it legally binding in all jurisdictions. Laws vary: in the EU, eIDAS regulation defines different levels of electronic signatures, and a simple digital signature may not meet the requirements for qualified signatures. In the US, the ESIGN Act and UETA give electronic signatures legal validity, but the specific technology matters for evidence. Always check the legal requirements for your situation; LibreOffice provides the technical tool, not the legal framework.
Frequently Asked Questions
Do I need a digital certificate to sign a document in LibreOffice?
Yes. LibreOffice cannot create a signature without a certificate that includes a private key. You can obtain a certificate from a certificate authority or create a self-signed one for internal use.
Can I sign a PDF in LibreOffice Writer?
You can sign a PDF during export from Writer by choosing the digital signature option in the PDF export dialog, but to sign an existing PDF you need to open it in LibreOffice Draw and use File > Digital Signatures > Sign Existing PDF.
Why does my signature show as invalid?
An invalid signature means the document has been changed since it was signed, or the signature data is corrupted. Make sure you sign the final version and do not edit the file afterward.
Is a LibreOffice digital signature legally binding?
It can be, depending on your jurisdiction and the type of certificate used. Digital signatures are generally recognized as legally valid in many countries, but qualified signatures may require specific certificate types. Consult local regulations.
Can I remove a digital signature from a LibreOffice document?
Yes. Open the document, go to File > Digital Signatures > Show Signatures, select the signature, and click Remove. Note that removing a signature may not be possible if the document is read-only or if the signature is part of a PDF's security settings.
Does LibreOffice support timestamping for signatures?
LibreOffice has limited support for timestamping. You can configure a timestamp authority in the digital signature settings, but the feature may require additional setup and is not as robust as dedicated PDF signing tools.