This is the first time I figured I had better check the keys of the bind software I want to install. So I downloaded what I think is a OpenPGP key ...
$ wget ftp://ftp.isc.org/isc/bind9/9.9.4/bind-9.9.4.tar.gz.sha1.asc
... then I tried to "import" this key like this ...
$ gpg --import bind-9.9.4.tar.gz.sha1.asc
... but I get this error message:
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
What am I doing wrong?
Thanks!
--import
is used to import keys, not to check a signature.The
.asc
file is usually a detached GPG signature. If you have filesfoo.tar.gz
andfoo.tar.gz.asc
(orfoo.tar.gz.sig
), then you can verify the filefoo.tar.gz
with:In your case however, the filename does not match that pattern so you should specify the
--verify
option explicitly. According to the manual page of gpg(1):Thus:
Now, this key can be imported using:
Be sure to verify this key. Ideally you would meet the person, but failing to do that, look at the trust others have in this key (Linux distributions, friends, etc). Remember that GPG is about a web of trust.
See also: