Skip to content

Instantly share code, notes, and snippets.

@milos-ivancevic-htec
Forked from sinewalker/keybase.md
Last active April 16, 2022 10:12
Show Gist options
  • Save milos-ivancevic-htec/df3230d8d57505f8001472b1f9831e60 to your computer and use it in GitHub Desktop.
Save milos-ivancevic-htec/df3230d8d57505f8001472b1f9831e60 to your computer and use it in GitHub Desktop.
How to import pub/sec PGP keys from keybase to your local GPG keyring.

Import Keybase PGP to GPG

After installing the keybase command-line tool onto a new / fresh computer, you may want to import your PGP key to the local keyring so that you may use the keys with GPG.

Import your PUBLIC PGP key:

keybase pgp export|gpg --import -

For your SECRET PGP key, you have to be more assertive:

keybase pgp export -s|gpg --allow-secret-key-import --import -

You will then want to trust the keys as your own, so that GPG can be "sure" they're safe to use

gpg -k 
gpg --edit-key <key_id>
trust
5
y
save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment