Follow: https://help.github.com/articles/generating-a-new-gpg-key/
- Generate a new key
gpg --full-generate-key
- List keys
gpg --list-secret-keys --keyid-format LONG
Follow: https://help.github.com/articles/adding-a-new-gpg-key-to-your-github-account/ and https://help.github.com/articles/associating-an-email-with-your-gpg-key/