Cantech Knowledge Base

Your Go-To Hosting Resource

How To Manage GNU Privacy Guard keys In cPanel?

As data breaches become more common, the need to fully protect your digital assets becomes imperative. GnuPG (GPG) allows you to protect your information more deeply, as GPG allows “asymmetric” cryptography, for example, using a public key to encrypt information, and a private key to decrypt. cPanel’s GnuPG management tool is essential for automating secure off-site backups and keeping sensitive customer information private on your server. This guide is designed to keep your information secure while generating, importing, and processing GPG keys in your hosting environment to lock up your information for good.

Creating, importing, viewing, and deleting keys is simple in cPanel.

# Steps to create a new Key

Create a new keypair first, so as to fully utilize GnuPG encryption.

To make a new GnuPG keypair, follow these simple steps:

  1. Log in to cPanel.
  2. Find the appropriate Email section on the cPanel home screen, then Encryption.
  3. In the Create a New Key section, type your name in the Name text box.
  4. In the Your Email text box, type in your e-mail address.
  5. Enter a comment or nickname for the key in the text box labeled Comment / Nickname.
  6. Input the desired key password into the textbox labeled Key Password.
  7. Repeat the password in the textbox labeled Password (Again).
  8. Enter an expiration date in the textbox labeled Expire Date. By default, keys expire in one year.
  9. Choose a key size from the textbox for the Key Size list box.
  10. Press the Generate Key button.

Finally, the process will be complete, and you will be able to see a notification that The Key has been successfully created.

# Instructions for using a Key

Importing a public key is only allowed if you have a keypair already, however.

  1. Position the mouse pointer on the Email section on the home page of the cPanel, then click on Encryption.
  2. Select the option labeled Import Key.
  3. Paste your text key into the provided text box.

When doing a copy and paste, ensure that you also have the following lines at the start and end of the key:

——BEGIN PGP PUBLIC KEY BLOCK——-Key data

——END PGP PUBLIC KEY BLOCK——

4. Press the Import button.

# How to view and delete a key

  1. On the cPanel home screen, click on Email, then go to Encryption.
  2. Locate the key you want to view or delete. Each email address will show a corresponding private and public key.
  • To view the key, select View.
  • To delete it, find the private key and click on Delete GnuPG Key, followed by Yes to confirm. You will lose both the private and public key.

Conclusion

Now that you’ve gotten the hang of managing GnuPG keys in cPanel, you can confidently manage the security of your server’s data. You can create and organize keys so that even when an attacker gets access to your data, it will remain unreadable to them. Be sure to keep your private keys to yourself and never divulge your passphrases—they’re the true “master keys” to your data. With GPG keys set up, you can be sure your hosting environment has an improved level of protection against data breaches and unauthorized access.

March 18, 2026