Skip to content

Commit

Permalink
Positive certification siganture in key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Jun 21, 2024
1 parent dd431f6 commit 20d9806
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openpgp/key_generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion openpgp/v2/key_generation.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 20d9806

Please sign in to comment.