Skip to content

Instantly share code, notes, and snippets.

@stevemk14ebr
Created May 6, 2020 02:19
Show Gist options
  • Save stevemk14ebr/34b1b963fe3a8bf07bfd8e0597c508fa to your computer and use it in GitHub Desktop.
Save stevemk14ebr/34b1b963fe3a8bf07bfd8e0597c508fa to your computer and use it in GitHub Desktop.
# make a key
gpg --full-generate-key
# make it > 4096
gpg --list-secret-keys --keyid-format LONG
# key id is numbers on asc line after /
gpg --armor --export <key id>
# add to github
git config --global user.signingkey <key id>
# export keys
gpg --export-secret-keys -a keyid > my_private_key.asc
gpg --export -a keyid > my_public_key.asc
# import keys
gpg --import my_private_key.asc
gpg --import my_public_key.asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment