January 21st, 2020 · 1 min read
brew install gpg pinentry-mac
gpg --full-generate-key
sec rsa4096/
, looking like this: 1234EA45F525C1AD
):
gpg --list-secret-keys --keyid-format LONG
git config --global user.signingkey KEY_ID_GOES_HERE
gpg
:
git config --global commit.gpgsign true
git config --global gpg.program gpg
gpg --armor --export KEY_ID_GOES_HERE | pbcopy
.bash_profile
:
GPG_TTY=$(tty)
config.fish
:
set -x GPG_TTY (tty)
~/.gnupg/gpg-agent.conf
:
pinentry-program /usr/local/bin/pinentry-mac
~/.gnupg/gpg.conf
:
use-agent
batch
require-cross-certification
gpg-agent
:
killall gpg-agent
gpg-agent --daemon