Bug 113278 - Digitally signing PDF files with OpenPGP ang GPG keys does not work
Summary: Digitally signing PDF files with OpenPGP ang GPG keys does not work
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.2.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:7.1.0 target:7.0.0.1
Keywords:
: 129030 (view as bug list)
Depends on:
Blocks: Digital-Signatures
  Show dependency treegraph
 
Reported: 2017-10-19 20:26 UTC by Darío Norberto Ruiz
Modified: 2020-06-08 14:47 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments
Este es el archivo firmado. (9.23 MB, application/vnd.oasis.opendocument.text)
2017-10-19 20:26 UTC, Darío Norberto Ruiz
Details
Plantilla del documento (12.49 KB, application/vnd.oasis.opendocument.text-template)
2017-11-08 00:59 UTC, Darío Norberto Ruiz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Darío Norberto Ruiz 2017-10-19 20:26:14 UTC
Created attachment 137128 [details]
Este es el archivo firmado.

I have previously created a document template.

Based on that template, I created a new document that I digitally signed with a PGP signature.

I have updated the document template with which I created the signed document.

When I try to open the document I have digitally signed again, the program asks me if I want to update the document with the modified template data. But the program closes when you try to update the data.

Another error occurs when I want to create a digitally signed PDF file with a PGP certificate. When I try to do it the program gives me an error.
Comment 1 Dieter 2017-10-20 15:57:53 UTC
Thank you for reporting the bug. As far as I can see, you describe two different bugs, although both are related to digital signature. I think you should write a different bug report for each bug.
Comment 2 Thorsten Behrens (CIB) 2017-11-07 16:20:58 UTC
since this is already depending on the digsig meta bug, let's take the pdf signature part of it. That's an enhancement request.
Comment 3 Thorsten Behrens (CIB) 2017-11-07 16:23:20 UTC
(In reply to Darío Norberto Ruiz from comment #0)
> Based on that template, I created a new document that I digitally signed
> with a PGP signature.
> 
That works - loading your example file, I get the expected result (signature valid, but key not trusted yet).

> When I try to open the document I have digitally signed again, the program
> asks me if I want to update the document with the modified template data.
> But the program closes when you try to update the data.
> 
As Dieter pointed out, please file a different bug, with a few more steps how to reproduce (perhaps also attaching your template). As it stands, I don't see the problem.
Comment 4 Darío Norberto Ruiz 2017-11-08 00:59:23 UTC Comment hidden (no-value)
Comment 5 Marco A.G.Pinto 2017-12-27 09:33:36 UTC Comment hidden (no-value)
Comment 6 Timur 2020-05-22 05:27:07 UTC
*** Bug 129030 has been marked as a duplicate of this bug. ***
Comment 7 Commit Notification 2020-06-05 08:58:55 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/57464ef8b985a47ce0b9682722f01c8913785f74

Related: tdf#113278 PDF export: improve selection of signing certificate

It will be available in 7.1.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 8 Commit Notification 2020-06-08 14:47:42 UTC
Miklos Vajna committed a patch related to this issue.
It has been pushed to "libreoffice-7-0":

https://git.libreoffice.org/core/commit/746590257b4404682cf5a9fc85b1b9e34f1f1462

Related: tdf#113278 PDF export: improve selection of signing certificate

It will be available in 7.0.0.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.