Verify a download using a PGP public key block (.asc file)
User documentation
14/02/2026
To verify a download using a PGP public key block (.asc file), you must import the key, then use it to verify the signature file against the downloaded binary. Using GnuPG (GPG) in a terminal, run gpg --import <keyfile.asc>, then gpg --verify <signature.asc> <downloaded_file> to confirm a "Good signature".
gpg --import /home/sam/automation-jans-public-gpg.asc
gpg --verify jans_1.16.0-stable.ubuntu24.04_amd64.deb.asc jans_1.16.0-stable.ubuntu24.04_amd64.deb
gpg: Signature made Thu 22 Jan 2026 18:00:06 UTC
gpg: using RSA key DE92BEF14A1A4E542F678B64DC3C790386C73900
gpg: Good signature from "moauto (automation) 54212639+mo-auto@users.noreply.github.com" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: DE92 BEF1 4A1A 4E54 2F67 8B64 DC3C 7903 86C7 3900
gpg: Good signature means that the download has been successfully verified using PGP (Pretty Good Privacy) standards, confirming both its authenticity (it came from the expected creator) and its integrity (it has not been tampered with or corrupted).
However, the "Good signature" message does not necessarily guarantee the identity of the signer unless you have also verified the public key's fingerprint.
Here is a breakdown of what this message means and the necessary precautions:
What "Good Signature" Implies
Integrity: The file matches the signature exactly. If a single byte was altered, GPG would return a "Bad signature" error.
Source: The file was signed by the holder of the private key corresponding to the public key you have on your keychain.
Mechanism: GPG (GNU Privacy Guard) is a free implementation of the OpenPGP standard, so a GPG check is a PGP check.
Important Considerations (The "Untrusted" Warning)
You will often see Good signature followed by a warning such as: "WARNING: This key is not certified with a trusted signature!".
What this means: GPG knows the file was signed by a specific key, but it cannot guarantee that the key actually belongs to the person you think it does (e.g., a malicious actor could have created a key labeled "Dev Team").
How to fix it: You must verify the fingerprint of the key you imported against the public key fingerprint provided on the developer's official website (ideally via HTTPS).
Steps to Valid Verification
Download: The file (e.g., program.exe) and the signature file (program.exe.sig or program.exe.asc).
Import: The public key of the creator (gpg --import key.asc).
Verify: Run gpg --verify file.sig file.
Confirm: Check that it says Good signature AND that the fingerprint matches the official website.
If you see gpg: Good signature, you can be confident the file is safe, provided you trust that you are using the correct public key to verify it.