


Gpg -output revoke.asc -gen-revoke key-ID Now, you need to revoke your key with the following command: In the above key, the key-ID is C5DB61BC. Suppose, that the following is the key which you want to revoke: If you have uploaded your public key into HKP key-servers then you also need to notify the key-server about your key revocation.įirst of all, list the keys from your keyring:

You need to revoke your public key and let other users know that this key is no longer useful. If you lost your private key then your public key becomes useless because you will not be able to decrypt any encrypted message sent to you.
