1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-22 12:22:06 +01:00

revoke-key: Generate hard instead of soft revocation

This commit is contained in:
Paul Schaub 2023-07-12 15:27:36 +02:00
parent 6e9d276309
commit c69af33588
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -79,7 +79,7 @@ public class RevokeKeyImpl implements RevokeKey {
SecretKeyRingEditorInterface editor = PGPainless.modifyKeyRing(secretKeys);
try {
RevocationAttributes revocationAttributes = RevocationAttributes.createKeyRevocation()
.withReason(RevocationAttributes.Reason.KEY_RETIRED)
.withReason(RevocationAttributes.Reason.NO_REASON)
.withoutDescription();
if (secretKeys.getPublicKey().getVersion() == PublicKeyPacket.VERSION_6) {
PGPPublicKeyRing revocation = editor.createMinimalRevocationCertificate(protector, revocationAttributes);