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:
parent
6e9d276309
commit
c69af33588
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue