Skip to content

Instantly share code, notes, and snippets.

@awaxa
Last active June 30, 2017 00:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save awaxa/8e119bb533b324819952bf63401d8942 to your computer and use it in GitHub Desktop.
Save awaxa/8e119bb533b324819952bf63401d8942 to your computer and use it in GitHub Desktop.
~/.gnupg/
# Enables GPG to find gpg-agent
use-standard-socket
# Connects gpg-agent to the OSX keychain via the brew-installed
# pinentry program from GPGtools. This is the OSX 'magic sauce',
# allowing the gpg key's passphrase to be stored in the login
# keychain, enabling automatic key signing.
pinentry-program /usr/local/bin/pinentry-mac
@awaxa
Copy link
Author

awaxa commented Jun 30, 2017

 ~  brew info pinentry-mac
pinentry-mac: stable 0.9.4 (bottled), HEAD
Pinentry for GPG on Mac
https://github.com/GPGTools/pinentry-mac
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/pinentry-mac.rb
==> Requirements
Build: xcode ✔
==> Caveats
You can now set this as your pinentry program like

~/.gnupg/gpg-agent.conf
    pinentry-program /usr/local/bin/pinentry-mac

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