Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Last active December 13, 2023 10:42
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save sinewalker/4f2ed39a643308efe71d532bb38e5186 to your computer and use it in GitHub Desktop.
Save sinewalker/4f2ed39a643308efe71d532bb38e5186 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 --edit-key you@keybase.io
trust
5
y
save
@ss-o
Copy link

ss-o commented Jun 27, 2022

Seems to be a typo: gpg --edit-key you@keybase.io. However great material I always struggle to remember the Keybase dead simple syntax. 🙉

Thanks,

@yeenbean
Copy link

yeenbean commented Dec 2, 2023

Thank you for the exceptionally straightforward guide.

@eddiewebb
Copy link

eddiewebb commented Dec 12, 2023

Thanks for this.

I needed to add export GPG_TTY=$(tty) to avoid error Inappropriate ioctl for device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment