Open cPanel and click Encryption in the Email section to create a GNU Privacy Guard (GPG) key pair. Enter your name and the email address to protect, then use the Password Generator for a strong passphrase. Click Generate Key and refresh the page to see the new keys. Share the public key with correspondents, but keep the private key and its passphrase secret.
GPG (GNU Privacy Guard) encrypts your email end-to-end using key pairs. A public key allows others to encrypt messages to you, while a private key decrypts them. This prevents anyone intercepting your emails from reading their contents.
You will create a GPG key pair in cPanel, configure its settings and access it for use with your email client. Once complete, you can share your public key with correspondents who need to send you encrypted messages.
cPanel’s encryption tool creates both public and private keys in one operation. You will provide identifying information and security settings that determine how your key functions.

After generation completes, your public and private keys become available in the encryption tool. You need to refresh the page to see them in the key list.

GPG encryption works alongside email authentication measures to protect your communications. The encryption process adds overhead to message size, so check our guide on email size limits if you plan to send large encrypted attachments.
You have created a GPG key pair in cPanel and can now access both your public and private keys. Share your public key with anyone who needs to send you encrypted messages. Keep your private key and its passphrase secure.
Review our guide on SSH key authentication to understand how public/private key pairs work in other contexts.
Did this guide solve your problem?
Our UK support team answers tickets and live chat every day. Send us the guide you were following and where it stopped working.
Related guides
Every cPanel hosting plan includes mailboxes you manage yourself.
Get cPanel HostingRegister the domain your mailboxes will sit on, with hundreds of extensions available.
Search Domains