Skip to content

Instantly share code, notes, and snippets.

@sinewalker
Last active October 27, 2024 20:00
Show Gist options
  • 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 [email protected]
trust
5
y
save
@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