GPG key Management
May 11, 2020
GPG2 or the OpenPGP encryption signing tool provides digital encryption and signing services. Below, we will have a guide that will demonstrate how to create, list, use, and remove gpg keys and gpg keys in your keyring.
- The obvious first step is to install the GPG package. In CentOS/Red Hat distros, type the following in the command line:
sudo yum install gnupg2
- to generate a new key:
- If you want to take a look at your key:
note the second value after pub. It will read XXXXX/YYYYYYYY. The ‘Y values are the gpg ID which will be useful or the next command.
- If you need to remove your key, you may have to delete your private key before you can remove your public key:
gpg –delete-secret-key key-ID
gpg –delete-key key-ID
More links on GPG: