1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-26 06:12: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); SecretKeyRingEditorInterface editor = PGPainless.modifyKeyRing(secretKeys);
try { try {
RevocationAttributes revocationAttributes = RevocationAttributes.createKeyRevocation() RevocationAttributes revocationAttributes = RevocationAttributes.createKeyRevocation()
.withReason(RevocationAttributes.Reason.KEY_RETIRED) .withReason(RevocationAttributes.Reason.NO_REASON)
.withoutDescription(); .withoutDescription();
if (secretKeys.getPublicKey().getVersion() == PublicKeyPacket.VERSION_6) { if (secretKeys.getPublicKey().getVersion() == PublicKeyPacket.VERSION_6) {
PGPPublicKeyRing revocation = editor.createMinimalRevocationCertificate(protector, revocationAttributes); PGPPublicKeyRing revocation = editor.createMinimalRevocationCertificate(protector, revocationAttributes);