Quick'n easy gpg cheatsheet
-
To create a key:
gpg --full-generate-key
generally you can select the defaults bygpg --gen-key
, or you prefer a rsa4096 encrypted key likegpg --default-new-key-algo rsa4096 --gen-key
NOTE: You "must" to associate your author/commiter email with your GPG key, if you didn't get prompted to enter the email, username, etc. You will need to
gpg --edit-key KeyID
- you will see
gpg>
, typeadduid
and follow the instructions - type
save
-
To export a public key into file public.key: