Importing your friends' public keys automatically with gpg
Today's post is just a quick one, as I've had a rather busy week that I'm now recovering from :)
Several times over the past few weeks I've been finding myself googling around to try and find a way to download someone's GPG / PGP public key and import it into GPG automatically, so that I can verify their GPG signatures. I'm posting the command here so that I don't have to keep looking for it :D
Here's the command to search for a someone's public key:
gpg --keyserver pgp.mit.edu --search bill@billsboosters.com
The above asks the key server at pgp.mit.edu for GPG keys associated with the email address bill@billsboosters.org. You don't actually have to provide the keyserver - GPG will default to searching keys.gnupg.net.
Sources and further reading
- Using GPG with Evolution by the Fedora Project
- Where to upload PGP public key? Are KeyServers still surviving? asked by RPK on superuser
- seahorse-nautilus - Nautilus integration for GPG (Direct install link)