The other end of key exchange — importing other people's publickeys to your keyring — is just as simple as exporting keys. Whenyou import someone's public key, you can decrypt their mail and checktheir digital signature against their public key on your keyring.
One of the easiest ways to import a key is to download the key or saveit from a website. To learn how to import Red Hat's key, refer to the section called Importing Keys in Chapter 17.
After downloading a key, use the command gpg --import key.asc to add it to your keyring.
Another way to save a key is to use a browser's SaveAs feature. If you are using a browser such asNavigator, and you locate a key at akeyserver, you can save the page as a text file (go toFile => Save As). In thedrop-down box next to Format for saved document,choose Text. Then, you can import the key —but remember the name of the file you saved. For example, if you saved akey as a text file called newkey.txt, toimport the file, at a shell prompt, type:
[newuser@localhost newuser]$ gpg --import newkey.txtgpg: key F78FFE84: public key imported gpg: Total number processed: 1 gpg: imported: 1
To check that the process was successful, use the gpg--list-keys command; you should see your newly imported key listed onyour keyring.