This guide covers creating a master keypair (private and public key, along with an automatically generated encryption subKey), creation of subKeys from that master key to use for signing, and using said keys on Git and Github.
Passphrases are optional but strongly encouraged.
- Type
gpg --full-generate-key
and enter following settings: - Algorithm:
RSA and RSA
- Key size:
4096 bits
- Duration:
0
(infinite; does not expire) - Fill in your personal info (
Comment
is username) - Enter passphrase if applicable