mohtek

Uncategorized

GPG key Management

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.

  1. 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
  2. to generate a new key:
    gpg –gen-key
  3. If you want to take a look at your key:
    gpg –list-keys
    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.
  4. 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:
https://computer.howstuffworks.com/encryption.htm

Leave a Reply

Your email address will not be published. Required fields are marked *