christopher-francisco / vizion

Provisioning for a new MacOS machine from scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Finish GPG key setup

christopher-francisco opened this issue · comments

Copied from readme:

  • Copying the key to clipboard
$ gpg --list-secret-keys --keyid-format LONG
$ gpg --armor --export FINGERPRINT | pbcopy

https://docs.github.com/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key

need to get the FINGERPRINT from the output of list-secret-keys

  1. Install GPG CLI tool
brew install gpg2
  1. Create the key with a size of 4096
$ gpg --full-generate-key
  1. Add this to ~/.zshrc.aliases
export GPG_TTY=$(tty)
  1. Get the key ID, print key and add to github
$ gpg --list-secret-keys --keyid-format LONG
$ gpg --armor --export <key>
  1. Modify .gitconfig.[local|enterprise] and add
[user]
  signingkey = <key>

[commit]
  gpgsign = true