Skip to content

Instantly share code, notes, and snippets.

@jonatan-ivanov
Last active August 26, 2018 06:51
Show Gist options
  • Save jonatan-ivanov/637c53fee9a8bc8bc20359d6cd593612 to your computer and use it in GitHub Desktop.
Save jonatan-ivanov/637c53fee9a8bc8bc20359d6cd593612 to your computer and use it in GitHub Desktop.

gpg 2.2.9 does not work with keybase keys, install 2.2.8

brew unlink gnupg
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/4451447c6a069b0f7ce5d8c88e4da7c4c89fbe52/Formula/gnupg.rb

in order to make gpg work, GPG_TTY needs to be set (.bashrc, .zshrc, etc.):

export GPG_TTY=$(tty)

restart the gpg agent

gpg-connect-agent reloadagent /bye
gpg --list-keys

import the keys

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