I now have PGP encryption available for my email! It was easier than I expected. Get my public key.
gpg --generate-key
# use the default key type
# input your name, email and a password when prompted
# Find key ID
gpg -K
# Send key to keyserver
gpg --keyserver keys.openpgp.org --send-keys KEY_ID
# Exporting public key
gpg --output public.pgp --armor --export EMAIL
# Exporting secret key
gpg --output secret.asc --armor --export-secret-key EMAIL
You can distribute the public key to keys.openpgp.org and anyone who wants to email you. Keep the secret key… secret. It will be needed to set up email clients.
Revoking a key
If you stop using a key or it gets stolen you need to revoke it.
# Generate revocation certificate
gpg --output revoke.asc --gen-revoke KEY_ID
Revocation certificates can be found in ~/.gnupg/openpgp-revocs.d
if you no longer have the secret key.
# Revoke certificate
gpg --import revoke.asc
# Send revoked key to keyserver (same as before)
gpg --keyserver keys.openpgp.org --send-keys KEY_ID