Generate KeyPair:
You will be asked for your key details. Fill them out. You can leave the comment field empty. After that, you will be asked for a passphrase, and then you'll be given a prompt to type it. You can leave it empty if you want. But you need to remember what you type in if you put something (required for decryption later.)
List all GPG key pairs
Export your Public Key:
Once you've generated your keys, export your public key with the following command
gpg -export --armor firstName.lastName @youremail .com
|
Import others Public Key:
Once you've generated your keys, export your public key with the following command
gpg --import abc_public.key
And you can check the list of keys by
gpg --list-public-keys
|