Bug 113188 - [Digital-Signatures][OpenPGP] Option to have <PGPKeyPacket> content be either full public key or minimal public key
Summary: [Digital-Signatures][OpenPGP] Option to have <PGPKeyPacket> content be either...
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected)
Hardware: All All
: medium enhancement
Assignee: Thorsten Behrens (allotropia)
Whiteboard: target:6.0.0
Depends on:
Blocks: Digital-Signatures
  Show dependency treegraph
Reported: 2017-10-17 14:29 UTC by Eike Rathke
Modified: 2018-02-28 09:04 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Note You need to log in before you can comment on or make changes to this bug.
Description Eike Rathke 2017-10-17 14:29:00 UTC
Signing a document with OpenPGP the <PGPKeyPacket> element in META-INF/documentsignatures.xml contains the full public key, which with many signatures easily can blow up to 1.5MB or more. Optionally only the minimal public key should be included, which is stripped of all signatures except the latest self-signatures.

Gpgme has a GPGME_EXPORT_MODE_MINIMAL flag for this, see https://www.gnupg.org/documentation/manuals/gpgme/Exporting-Keys.html
Comment 1 Commit Notification 2017-10-18 13:06:36 UTC
Thorsten Behrens committed a patch related to this issue.
It has been pushed to "master":


gpg4libre - tdf#113188 add option for minimal PGPKeyPacket

It will be available in 6.0.0.

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

Affected users are encouraged to test the fix and report feedback.
Comment 2 Thorsten Behrens (allotropia) 2017-10-18 13:11:09 UTC
new hidden config item: Office/Common/Security/OpenPGP/MinimalKeyExport - set to true to get only minimal public key in the key packet
Comment 3 Eike Rathke 2017-10-18 13:24:10 UTC
Verified it works as intended.