So you want to send encrypted messages to a buddy. How to generate a key? Follow these simple steps.
Install gpg if you haven’t already.
sudo apt-get -y install gpg
Now you need to generate a key pair
gpg --full-gen-key
Follow the on-screen prompts. I used RSA encryption, 4096 length, 1y expiration.
Now that our key is made, we want to output it to a keyserver. Export and copy the key to clipboard
gpg --export -a | xclip -i -selection clipboard
Paste it into https://pgp.mit.edu/
DONE