. Advertisement .
..3..
. Advertisement .
..4..
For the problem “gpg can’t check signature no public key”. I tried to fix it, but it doesn’t work and returns the result I want. Here is my program:
gpg --output file.txt --decrypt file.pgp
and
"gpg: Can't check signature: public key not found"
has occurred. I’ve checked the entire command line but still can’t find the mistake.
The cause:
After looking over your program, I find that you don’t possess the public key for the person who signed your message, so the error happens.
Solution:
You should have received a message with the ID of what key was used to sign the file from
gpg
. Then, you get the public key from the person that encrypted the file. Next, you have inputed it intogpg2 --import key.asc
, you will be able verify the signature.If a keyserver (for example, https://pgp.mit.edu/) receives public key from the sender, you will be able to input the key directly from the keyserver:
The public key for your gpg keyring is required. You can import the public keys into your public keyring by placing the public key block in a text document with a.gpg extension and then issuing the following command:
This block should be provided by the entity that encrypted your file. For example, ftp://ftp.gnu.org/gnu/gnu-keyring.gpg has the block for gnu.org.
Verifying files without a.sig or.asc to verify their authenticity.