aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/gpg
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto/gpg')
-rw-r--r--lib/crypto/gpg/gpgbin/keys.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/crypto/gpg/gpgbin/keys.go b/lib/crypto/gpg/gpgbin/keys.go
index ca166e9d..93f48210 100644
--- a/lib/crypto/gpg/gpgbin/keys.go
+++ b/lib/crypto/gpg/gpgbin/keys.go
@@ -30,7 +30,8 @@ func GetKeyId(s string) (string, error) {
// ExportPublicKey exports the public key identified by k in armor format
func ExportPublicKey(k string) (io.Reader, error) {
- cmd := exec.Command("gpg", "--export", "--armor", k)
+ cmd := exec.Command("gpg", "--armor",
+ "--export-options", "export-minimal", "--export", k)
var outbuf bytes.Buffer
var stderr strings.Builder