Applying Digital Signatures

From LibreOffice Help
Jump to: navigation, search

Getting a Certificate

You can get a certificate from a certification authority. No matter if you choose a governmental institution or a private company it is common to be charged for this service, for example when they certify your identity. Few other authorities issue certificates free of costs, like the Open Source Project CAcert which is based on the well-known and reliable Web of Trust model and is of growing popularity.

Managing your Certificates

If you are using Solaris or Linux, you must install a recent version of Thunderbird or Firefox to install some system files that are needed for encryption.

Tip.png If you have created different profiles in Thunderbird or Firefox, and you want LibreOffice to use one specified profile for certificates, then you can set the environment variable MOZILLA_CERTIFICATE_FOLDER to point to the folder of that specified profile.
  1. Open your web browser’s preferences, select the Advanced section, click on the Certificates tab, and then choose View Certificates. The Certificate Manager dialog will appear.
  2. Import your new root certificate, then select and edit the certificate. Enable the root certificate to be trusted at least for web and email access. This ensures that the certificate can sign your documents. You may edit any intermediate certificate in the same way, but it is not mandatory for signing documents.
  3. When you have edited the new certificates, restart LibreOffice.== Signing a document ==
  1. Choose File - Digital Signatures - Digital Signatures.
  2. A message box advises you to save the document. Click Yes to save the file.
  3. After saving, you see the Digital Signatures dialog. Click Add to add a public key to the document.
  4. In the Select Certificate dialog, select your certificate and click OK.
  5. You see again the Digital Signatures dialog, where you can add more certificates if you want. Click OK to add the public key to the saved file.

A signed document shows an icon


in the status bar. You can double-click the icon in the status bar to view the certificate.

The result of the signature validation is displayed in the status bar and within the Digital Signature dialog. Several documents and macro signatures can exist inside an ODF document. If there is a problem with one signature, then the validation result of that one signature is assumed for all signatures. That is, if there are ten valid signatures and one invalid signature, then the status bar and the status field in the dialog will flag the signature as invalid.

Signing the macros inside a document

Normally, macros are part of a document. If you sign a document, the macros inside the document are signed automatically. If you want to sign only the macros, but not the document, proceed as follows:

  1. Choose Tools - Macros - Digital Signature.
  2. Apply the signature as described above for documents.

When you open the Basic IDE that contains signed macros, you see an icon


in the status bar. You can double-click the icon in the status bar to view the certificate.

Related Topics

English Wiki page on digital signatures

About digital signatures