Skip to content

Commit

Permalink
Fix armoring private keys
Browse files Browse the repository at this point in the history
  • Loading branch information
twiss committed Nov 22, 2024
1 parent d885fb8 commit fbe5a9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/armor.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ func armorKeys(input []byte, armorType string) (armored string, err error) {
}

for _, entity := range entities {
err = entity.Serialize(w)
if entity.PrivateKey != nil {
err = entity.SerializePrivateWithoutSigning(w, &packet.Config{})
} else {
err = entity.Serialize(w)
}
if err != nil {
return armored, err
}
Expand Down

0 comments on commit fbe5a9e

Please sign in to comment.