If a LibreOffice Writer or Calc document is saved with a password, and you use a Signature Line to add a digital signature/certificate, the certificate is considered invalid.
The same certificate is considered valid when added to a non-password saved document.
It is also possible to add it via File > Digital Signatures, in which case it is considered valid.
As a note, so far I have only tested certificates generated by GnuPG with and without passwords. When attempting to add a password protected certificate via the Signature Line I am not asked for a password.
_Steps to Reproduce_
Make sure you have at least one (valid) certificate available.
1. Create a new Writer or Calc document
2. Insert > Signature Line
3. Fill in the dialog and press ok
4. Save the document with a password (in the Save As dialog/filesystem navigator, at the bottom left should be an option "Save with password")
5. Right-click Signature Line and select "Sign Signature Line"
6. Type in a name, click "Select Certificate" and select a certificate
7. Click Sign
You will immediately be told the certificate is invalid.
Should be prompted for password (if necessary). Certificate should be added to the document and it should be considered valid.
User Profile Reset: Yes
Build ID: 380d0fda99ff664de8443cfc33c7c86bca18134c
CPU threads: 2; OS: Linux 3.16; UI render: default; VCL: gtk2;
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-08-16_22:45:19
Locale: en-GB (en_GB.UTF-8); Calc: threaded
My OS is Debian 8.10.
Created attachment 144277 [details]
printscreen of error message
I can confirm with Version: 188.8.131.52.alpha0+
Build ID: 4cb69cf33b5bf17030bcd263fe31258177c76d5e
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2;
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2018-08-18_05:13:44
@Samuel, I thought you could be interested in this issue...