Skip to content

Instantly share code, notes, and snippets.

@shpark
Last active April 9, 2021 08:31
Show Gist options
  • Save shpark/7f686b874ef5e524fbac6c4a9b39da3a to your computer and use it in GitHub Desktop.
Save shpark/7f686b874ef5e524fbac6c4a9b39da3a to your computer and use it in GitHub Desktop.
GPG troubleshooting

SO link.

  1. Add export GPG_TTY=$(tty) to .bashrc.
  2. git config --global user.signingkey <key id>; <key id> can be found in the output of gpg --list-keys (public key?).
  3. Example ~/.gnupg/gpg-agent.conf:
pinentry-program /usr/bin/pinentry-curses
allow-loopback-pinentry
  1. Reload gpg-agent: gpg-connect-agent reloadagent /bye.

Sanity check:

echo test | gpg2 --clearsign

Importing PGP key from keybase

keybase pgp export | gpg --import
keybase pgp export --secret | gpg --allow-secret-key-import --import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment