Skip to content

Instantly share code, notes, and snippets.

@stctheproducer
Forked from sinewalker/keybase.md
Created January 8, 2025 21:20
Show Gist options
  • Save stctheproducer/4856214d6960ceedec078914d7edcdb0 to your computer and use it in GitHub Desktop.
Save stctheproducer/4856214d6960ceedec078914d7edcdb0 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
@stctheproducer
Copy link
Author

For the public key to update in keybase, run the following when editing the key

setpref AES256 AES192 AES CAST5 3DES SHA512 SHA384 SHA256 SHA224 RIPEMD160 SHA1 ZLIB BZIP2 ZIP Uncompressed ks-modify no-mdc

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