Skip to content

Instantly share code, notes, and snippets.

View dotLou's full-sized avatar

Louis Cloutier dotLou

  • Software Engineering Manager @Shopify
  • Gatineau, Quebec (Canada)
  • 08:12 (UTC -04:00)
View GitHub Profile
@dotLou
dotLou / install.md
Created December 22, 2021 21:05
git commit signing with gpg keys on mac os
  1. Import GPG keys from 1password/keybase/etc. (public & private!)
  2. brew install gpg gpg2 pinentry-mac
  3. echo "pinentry-program $(which pinentry-mac)" | tee ~/.gnupg/gpg-agent.conf
  4. Restart the agent (something like pkill -TERM gpg-agent and then a new terminal)
  5. Test it out echo test | gpg -e -r EMAIL_GOES_HERE | gpg -d (replace EMAIL_GOES_HERE with email of target key)
@dotLou
dotLou / gist:297baf0cc34031a56b9072d55b253ea2
Created December 22, 2021 21:03
git commit signing on mac os
1. Import GPG keys from 1password/keybase/etc. (public & private!)
2. `brew install gpg gpg2 pinentry-mac`
3. `echo "pinentry-program $(which pinentry-mac)" | tee ~/.gnupg/gpg-agent.conf`
4. Restart the agent (something like `pkill -TERM gpg-agent` and then a new terminal)
5. Test it out `echo test | gpg -e -r EMAIL_GOES_HERE | gpg -d` (replace `EMAIL_GOES_HERE` with email of target key)

Keybase proof

I hereby claim:

  • I am dotlou on github.
  • I am dotlou (https://keybase.io/dotlou) on keybase.
  • I have a public key whose fingerprint is AAD4 A3DB A154 C6F5 C8AA 0ED4 A5D0 E025 CB4B 7628

To claim this, I am signing this object: