Then gpg -d fileB.gpg will simply decrypt the file and the result is a signature, but gpg does not proceed to do anything with the signature. In other words gpg will only verify the signature when performing decryption if the signature is for the data it is decrypting.
May 31, 2019 · $ gpg --list-keys --with-fingerprint <0x-----> <0x-----> Step 5: Verify the signature. Now you can run the command to verify the signature. It is the same command that you have used previously to find the keys that were used for issuing the signature. $ gpg --verify SHA256SUMS.gpg SHA256SUMS. Now you can see the above output. SignTool verify MyControl.exe. If the preceding example fails, it could be that the signature used a code-signing certificate. SignTool defaults to the Windows driver policy for verification. The following command verifies the signature, using the Default Authentication Verification Policy: SignTool verify /pa MyControl.exe Jun 10, 2017 · gpg --verify SHA512SUMS.sign SHA512SUMS gpg: Signature made Sun 07 May 2017 02:28:21 PM EDT gpg: using RSA key DA87E80D6294BE9B gpg: Good signature from "Debian CD signing key
From my limited knowledge of PGP/GPG, one must have 2 things to verify a file: The file's "signature" (essentially a hash of the file encrypted with the trusted entity's private key; normally distributed as a .sig binary or .asc base64 file). The trusted entity's public key. And it seems to be inline with the examples I looked at using gpg
GPG offers a lot more functionality than just verifying signatures though. To learn more about GPG in general and how to manage keys, encrypt, sign, and more, read my GPG Tutorial. In some situations you don't have a GPG signature to verify, but you are provided with an MD5 or SHA1 hash. Both the document and detached signature are needed to verify the signature. The --verify option can be to check the signature. blake% gpg --verify doc.sig doc gpg: Signature made Fri Jun 4 12:38:46 1999 CDT using DSA key ID BB7576AC gpg: Good signature from "Alice (Judge)
$ gpg2 --locate-keys torvalds@kernel.org gregkh@kernel.org $ gpg2 --verify linux-4.6.6.tar.sign gpg: Signature made Wed 10 Aug 2016 06:55:15 AM EDT gpg: using RSA key 38DBBDC86092693E gpg: Good signature from "Greg Kroah-Hartman " [unknown] gpg: WARNING: This key is not certified with a trusted signature! gpg: There is no
$ git merge --verify-signatures -S signed-branch Commit 13ad65e has a good GPG signature by Scott Chacon (Git signing key)