How to create a PGP key on linux


First you'll want to create your key.

gpg --gen-key  

Then ascii armor it for sharing.

gpg --armor --export user@example.com  

You can view your keys by using the list command.

gpg --list-keys