Skip to content

Instantly share code, notes, and snippets.

@mortonfox
Created March 31, 2021 21:09
Show Gist options
  • Save mortonfox/4b07528c7e7d2ce19cfb88da7c3dd417 to your computer and use it in GitHub Desktop.
Save mortonfox/4b07528c7e7d2ce19cfb88da7c3dd417 to your computer and use it in GitHub Desktop.
[Set up pinentry-mac for gpg] #gpg #git #signing #pinentry

Installing pinentry-mac

Install pinentry-mac:

brew install pinentry-mac

Add the following line to ~/.gnupg/gpg-agent-conf:

pinentry-program /usr/local/bin/pinentry-mac

Restart gpg-agent:

gpgconf --kill gpg-agent

Testing pinentry-mac

Run pinentry-mac:

/usr/local/bin/pinentry-mac

Try pinentry commands:

GETPIN
CONFIRM

Test a key using gpg clearsign:

echo hello | gpg -u github@qslw.com --clearsign

References:

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