Skip to content

Instantly share code, notes, and snippets.

Last active April 21, 2023 11:53
  • Star 37 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
How to setup Tower to use the GPG Suite


No need for homebrew or anything like that. Works with and the command line.

  1. Install -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
git config --global gpg.program /usr/local/MacGPG2/bin/gpg2
git config --global user.signingkey A6B167E1 
git config --global commit.gpgsign true 
  1. Add this line to ~/.gnupg/gpg-agent.conf
pinentry-program /usr/local/MacGPG2/libexec/
  1. Add this line to ~/.gnupg/gpg.conf
# GPG on Tower
Copy link

Awesome, thanks!

Copy link

binary10 commented Jan 4, 2019


Copy link

Fab1n commented Dec 9, 2022

why no-tty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment