Bug 157725 - Signing a PDF has no visible effect, signature is not listed
Summary: Signing a PDF has no visible effect, signature is not listed
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.4.5.1 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PDF-Signature
  Show dependency treegraph
 
Reported: 2023-10-12 13:11 UTC by Yves57
Modified: 2024-05-29 08:31 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yves57 2023-10-12 13:11:04 UTC
As in bug 94903 , I try to apply a digital signature to a PDF file, but this one doesn't add itself to the document.
1. trying to sign the document
2. pressing "sign document" button in the banner
3. the "choose certificate" dialog comes up with (correct)
4. pressing another "sign document..." button
5. a dialogue ask for PIN number
6. a window lists certificat X.509 with one entry with my name
7. choosing the certificate and pressing "Sign".
8. the window of step 3. comes back, nothing happens, no signature is listed

I would expect that at step 8 a signature is listed in the dialogue.
Digital certificates is on a USB key and is configured inside Firefox. It uses Feitian SCR301 device with Gemalto chip. It is working inside Firefox and Chromium.
No error is reported in console.
What can I try else?

My system is Mageia 8 with Libreoffice provided by the distro.
Comment 1 Yves57 2023-10-12 13:49:19 UTC
I then installed the 7.6.2.1 release.
When I opened my document, I see that there several signatures I already added.
However, I have a warning that this signature could be not valid.
"At least one signature has problems: the certificate could not be validated."
The document had already another signature, thus I don't know which signature could be invalid.

Incidentally, the Remove button has no effect.
Comment 2 Stéphane Guillou (stragu) 2023-10-27 15:23:45 UTC
Thank you for the report, Yves.

So your original issue described in Comment 0 (no signature listed) seems to be fixed. Is that correct? You can sign a PDF with a x.509 certificate and see it listed in the dialog with LO 7.6.2.1?

Regarding your comment 1, looks like there's two issues:
- signature can't be validated
- signature can't be removed

Please test with 7.6.2.1 from a brand new document, export to PDF, sign that PDF with the x.509 certificate, and see if it can be validated and removed.

Please also share your full version information from Help > About LibreOffice.

Much appreciated!
Comment 3 QA Administrators 2024-04-25 03:16:30 UTC Comment hidden (obsolete)
Comment 4 QA Administrators 2024-05-26 03:15:08 UTC Comment hidden (obsolete)
Comment 5 Yves57 2024-05-26 05:39:05 UTC
I have now Libreoffice 7.6.6.3, from the distro Mageia 9
Version: 7.6.6.3 (X86_64)
Build ID: 60(Build:3)
CPU threads: 4; OS: Linux 6.6; UI render: default; VCL: gtk3
Locale: fr-FR (fr_FR.UTF-8); UI: fr-FR
Calc: threaded

The same as described in comment 0 happens.
Comment 6 Stéphane Guillou (stragu) 2024-05-28 05:55:46 UTC
I can't reproduce the issue with an x.509 certificate managed by Thunderbird on Ubuntu 22.04, with:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 101b08fe1ec77ffe8c1a9b2b8f9f20884269a1ed
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Nor with:

Version: 7.6.7.2 (X86_64) / LibreOffice Community
Build ID: dd47e4b30cb7dab30588d6c79c651f218165e3c5
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

In both, the certificate is listed after signing. Opening the PDF in Okular shows the "This document is digitally signed" banner.
Comment 7 Yves57 2024-05-29 08:31:50 UTC
Thanks for this feedback.
This is thus perhaps a problem with the distro version.
Is some external tool or libraries be implied in this process?