GPG 2.1 on macOS with keychain integration

in macos •  8 years ago  (edited)

Gnupg_logo.jpg

Contrary to endless outdated tutorials and Stack Overflow posts, installation and setup of GPG on macOS has been greatly simplified with GPG 2.1. Including its integration into the macOS Keychain so you don't have to type in passwords all the time. None of that manual gpg-agent starting and setting sockets is needed anymore.

The most recent 2.1 version of GPG is available via Homebrew:

brew install gpg pinentry-mac



The pinentry-mac package will pop up a dialogue whenever GPG asks for a password. After installation, you need to point GPG to use the above installed pinentry-mac by adding this line to ~/.gnupg/gpg-agent.conf:

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

# quickly add from Terminal:
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf



Done. You now have the most recent GPG version running on your Mac.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @kremalicious! You have received a personal award!

1 Year on Steemit
Click on the badge to view your own Board of Honor on SteemitBoard.

Upvote this notificationto to help all Steemit users. Learn why here!

Congratulations @kremalicious! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Do not miss the last post from @steemitboard:

New japanese speaking community Steem Meetup badge
Vote for @Steemitboard as a witness to get one more award and increased upvotes!