GnuPG Encryption in cPanel
Brief information about GnuPG
OpenPGP software uses a combination of strong public-key and symmetric cryptography to provide security services for electronic communications and data storage. These services include confidentiality, key management, authentication, encryption, compression, and digital signatures.
PGP(Pretty Good Privacy) is a family of software systems developed by Philip R. Zimmermann from which OpenPGP is based.
GnuPG (GNU Privacy Guard), also called GPG is an OpenPGP implementation that avoids all encumbered algorithms.
GnuPG keys use the public key approach for encryption. Servers that use GnuPG keys encrypt outbound messages with a public key. Only the intended recipient, who has the private key, can decrypt the message.
To enter Enctyption interface go to cPanel > Email and click Encrpyption link:
Create a New Key
Enter your information in the Create a New Key text boxes.
Use the password generator to create a secure password. Make sure to write down the password in a file because there is no way to recover it. If you lose your password you must create a new GnuPG keys and replace the old key everywhere you are using it:
Use an appropriate expiration date for your key. The system defaults to one year (1y):
Select the key size from the Key Size menu.
Click Generate Key. A confirmation message will appear:
The new keys will be added in two separate tables:
Import a key
To import an existing GnuPG key copy and paste the private key into the available text box:
Click Import. The system will automatically install the key:
The imported keys will appear in Public Keys and Private Keys tables:
6922081A [1024D] importedkey (importedkey) (firstname.lastname@example.org)
You can view the existing keys if you click the View link in Public Keys and Private Keys tables:
If you want to delete a key pair and you try with the public key first the system will return an error:
Sorry, you must delete the secret key before removing the public key.
When you delete and confirm the deletion of the private key the system will automatically delete the corresponding public key also.
There is no easier and faster way to generate GnuPG keys than do it in cPanel. In separate articles we will show you how you can use GnuPG keys to encrypt email in Horde webmail as well as in Thunderbird mail client.