How to revoke a GnuPG / GPG key in Linux

If your Gnu Privacy Guard or GPG or GnuPG key has been compromised or something has gone wrong, you can revoke your key. Make sure that you generated a revocation certificate and stored in a safe place to do so.

To revoke a key, open a terminal in Linux, and enter the following command:
$ gpg --import /home/user/revoke.asc <enter>

where revoke.asc is the revocation certificate file name.

As part of good key management practice, you should try not to delete keys, but revoke them.

After you have revoked the key, you need to send it to a key server, so that everyone who used it, knows that you have revoked the key.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s