From 20d98066bf49883040570c138d7a4edeba6dcdc7 Mon Sep 17 00:00:00 2001 From: Lukas Burkhalter Date: Fri, 21 Jun 2024 11:22:35 +0200 Subject: [PATCH] Positive certification siganture in key generation --- openpgp/key_generation.go | 2 +- openpgp/v2/key_generation.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openpgp/key_generation.go b/openpgp/key_generation.go index ae62dbeb..43dfe55a 100644 --- a/openpgp/key_generation.go +++ b/openpgp/key_generation.go @@ -155,7 +155,7 @@ func (t *Entity) addUserId(name, comment, email string, config *packet.Config, c primary := t.PrivateKey isPrimaryId := len(t.Identities) == 0 - selfSignature := createSignaturePacket(&primary.PublicKey, packet.SigTypeGenericCert, config) + selfSignature := createSignaturePacket(&primary.PublicKey, packet.SigTypePositiveCert, config) if writeProperties { err := writeKeyProperties(selfSignature, creationTime, keyLifetimeSecs, config) if err != nil { diff --git a/openpgp/v2/key_generation.go b/openpgp/v2/key_generation.go index 5a9f7d5f..b8d5ae37 100644 --- a/openpgp/v2/key_generation.go +++ b/openpgp/v2/key_generation.go @@ -226,7 +226,7 @@ func (t *Entity) addUserId(userIdData userIdData, config *packet.Config, selecte primary := t.PrivateKey isPrimaryId := len(t.Identities) == 0 - selfSignature := createSignaturePacket(&primary.PublicKey, packet.SigTypeGenericCert, config) + selfSignature := createSignaturePacket(&primary.PublicKey, packet.SigTypePositiveCert, config) if selectedKeyProperties != nil { err := writeKeyProperties(selfSignature, selectedKeyProperties) if err != nil {