Troubleshooting Files in the ~/.gnupg/ Directory

The LPI exam also expects you to identify the files in the ~/.gnupg directory, mainly because you may need to troubleshoot an installation or obtain a private key. Following is a listing of the files found in a typical GPG implementation, regardless of Linux distribution:

gpg.conf

Allows you to create default settings for GPG, including a preferred key server. A key server contains the public keys of any user who wishes to upload her keys.

pubring.gpg

Contains the public keys that you have imported.

random_seed

A text file containing settings that enable GPG to create random numbers more quickly and easily.

secring.gpg

Contains the private key that determines your identity.

trustdb.gpg

The trust database, which contains the information concerning the trust values you have assigned to various public keys. A user may set variable levels of trust to public keys in his key ring. More information on trust can be found in the GPG documentation.

Get LPI Linux Certification in a Nutshell, 3rd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.