What is a PGP revocation certificate?
A revocation certificate is a small file signed with your private key. Once it is imported and published, OpenPGP software treats the key as revoked. People should stop encrypting to it, and they can still use the key to verify old signatures or, if they have the matching private key, to decrypt old messages.
Only the owner of the private key can create this certificate, unless you previously designated another key as a revoker. Generating the certificate does not revoke the key by itself. Nothing leaves this page, and nothing is sent to a keyserver, until you publish the result.
How do I revoke a PGP key?
-
Paste your private key
Paste the ASCII-armored private key, or click IMPORT KEY FILE, and enter its passphrase. Prefer an offline session if you can.
-
Choose a reason
Pick why the key is being revoked: compromised, superseded, no longer used, or unspecified. You can add a short optional comment.
-
Download revoke.asc
Generate the certificate, then download
revoke.ascand, if you are ready to revoke now, the revoked public key. Use CLEAR FORM when you are done. -
Publish only when needed
Keep the certificate offline until you need it. Then import it, replace the public key on keyservers such as keys.openpgp.org, on WKD, and on your website, and check the status in the key viewer.
How to apply the certificate
In GnuPG, import the certificate, export the now-revoked public key, and send it to a keyserver:
gpg --import revoke.asc
gpg --armor --export YOUR_FINGERPRINT > revoked-public-key.asc
gpg --keyserver hkps://keys.openpgp.org --send-keys YOUR_FINGERPRINT
Also replace the public key file on your website and update WKD if you use it. Then paste the revoked public key into the PGP Key Viewer to confirm the revoked status and the reason.
You can generate a certificate in advance, even if the key is still fine. That is useful if you later lose the passphrase or the private key. Create the file while you still have access, store it offline, and publish it only if the key must be retired.
Learn more in How to Generate a PGP Key Safely and How to Read a PGP Key, or explore all security tools.
Frequently Asked Questions
Can anyone revoke my PGP key?
No. A revocation certificate must be signed with the matching private key, so only the key owner can create one. The only exception is a designated revoker that you added to the key yourself. Protect your revoke.asc file: anyone who has that certificate can publish it and mark the key as revoked, but they still cannot decrypt or sign as you.
Does my private key leave the browser?
No. The certificate is created locally with OpenPGP.js 6.3.3. Your private key, passphrase, and the resulting certificate are not uploaded to OnlinePGP servers. Still, never paste a private key on a site you do not trust. For higher assurance, install the OnlinePGP app and generate the certificate offline, or use GnuPG on an offline computer.
How do I apply a revocation certificate?
Import revoke.asc into your OpenPGP software, then publish the revoked public key wherever people already have the old one: a keyserver such as keys.openpgp.org, Web Key Directory (WKD), and your website. Generating the certificate here does not publish it. After you publish, inspect the key in the PGP Key Viewer to confirm it shows as revoked.
Where should I store revoke.asc?
Keep it offline in a safe place, separate from your everyday devices. Anyone who obtains the certificate can revoke the key, even without the private key or passphrase. Do not email it, commit it to a public repository, or leave it in downloads.
What is the difference between the certificate and the revoked public key?
The revocation certificate (revoke.asc) is a small signed statement you can store until you need it. The revoked public key is your public key with that revocation already applied. Use the certificate if you want a file you can import later. Use the revoked public key when you are ready to replace the published key.
Can I create a certificate without a network connection?
Yes. After you open this page once, the OnlinePGP progressive web app can load the tool and OpenPGP.js from its offline cache. Disconnect from the network before you paste your private key if you want that extra isolation.