Creating Your PGP Key Pair

Last updated: May 2026

Your key pair consists of a public key (shared with others) and a private key (kept secret). This guide covers generating a key pair using GnuPG.


Generating the Key

gpg --full-generate-key

Follow the prompts:


Exporting Your Public Key

gpg --export --armor your-email@example.com > public-key.asc

Share this public key with others so they can encrypt messages to you.

Remember: Your private key must never leave your secure system. Back it up encrypted.