Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish GPG key setup #67

Open
christopher-francisco opened this issue Nov 2, 2021 · 1 comment
Open

Finish GPG key setup #67

christopher-francisco opened this issue Nov 2, 2021 · 1 comment

Comments

@christopher-francisco
Copy link
Owner

christopher-francisco commented Nov 2, 2021

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

@christopher-francisco
Copy link
Owner Author

  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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant