Verify a PGP Signature
Check who signed a message and that it has not been changed.
- Add the signed message.
- Add the sender's public key.
- Press Verify. The result appears here.
How to verify a PGP signature
Verifying checks that a message was signed by a particular key and has not been changed since.
- Paste the whole signed message, from
-----BEGIN PGP SIGNED MESSAGE-----to-----END PGP SIGNATURE-----. - Add the sender's public key. Get it from the sender or somewhere you trust, not from the message itself. If you are not sure which key signed, add several.
- Press Verify. The result says whether the signature is valid, which key made it and when.
A valid signature proves which key signed. To know whose key it is, compare its fingerprint with one the sender gave you through another channel.
To check the signature on an encrypted message, use the Decrypt page.
Questions about verifying a PGP signature
What does a valid PGP signature prove?
That the text was signed by the private key matching the public key you supplied, and that it has not been changed since.
It does not prove who owns that key, because anyone can make a key with any name on it. Compare the fingerprint in the result with one the sender has given you through a channel you trust.
Why does it say the message was signed by a different key?
The signature was made by a key that is not among the ones you pasted, so it could not be checked. That does not mean it is bad.
The result shows the ID of the key that signed. Ask the sender for that public key, or paste all of their keys at once.
Why does the signature not match?
Either the text was changed after it was signed, or the signature was not made by the key it names. Often the cause is innocent: an email program or a forum re-wrapped the lines, changed the quotation marks or dropped a blank line.
Copy the whole block again from the original source. If it still does not match, do not rely on the message, and ask the sender to send it again.
Where do I get the sender's public key?
From the sender, or from a place they control, such as their website, a profile, or a key server like keys.openpgp.org. A public key is not secret, and verifying needs no private key or passphrase.
Do not take the key from the message you are checking. Someone who forged the message could supply a matching key of their own.
Can I verify a downloaded file or a detached signature?
No. This page checks signed text: messages that begin with -----BEGIN PGP SIGNED MESSAGE-----, and signed messages in a -----BEGIN PGP MESSAGE----- block.
Software downloads usually come with a separate .sig or .asc file. Check those with GnuPG: gpg --verify file.sig file.