Page MenuHome GnuPG

Issues with Okular PGP signature error
Open, NormalPublic

Description

When trying to sign a document with Okular with a PGP signature on Windows I encountered the following issue when saving a file

Could not sign. Could not write to 'C:/Users/Carl/Downloads/mydocument.pdf`

Okular prompted me for a location for a file called mydocument_signed.pdf, so I am not even sure why it's trying to save at mydocument.pdf

Okular does create a mydocument_signed.pdf but when opening that file with okular, I am getting the following issue:

This document is digitally signed. Some of the signatures could not be validated properly.

And this is the result in the signature pane

Event Timeline

werner triaged this task as Normal priority.Wed, Mar 12, 9:21 AM
werner added projects: okular, Bug Report.

Something went wrong during signing - the question is what.

The error message is obviously wrong. That's a minor issue in Okular; it puts document->location() in the error message instead of signedDocumentPath.

Your signature pane screenshot looks closer to a malformed document than a proper one. Can you share the document?

Are there anything in debug viewer if you try to reproduce it?

We investigated this a bit and it only happens when trying to sign with a non VSD key when gnupg is in VSD mode