Skip to content

Instantly share code, notes, and snippets.

@DarthJahus
Forked from douglasmiranda/instructions.md
Created February 26, 2022 19:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DarthJahus/fc60737ebf8dc368ce0f90b52601c08c to your computer and use it in GitHub Desktop.
Save DarthJahus/fc60737ebf8dc368ce0f90b52601c08c to your computer and use it in GitHub Desktop.
Add email to Keybase.io PGP Key (Public Key)

Export your public key:

keybase pgp export > keybase-public.key

Export your private key:

keybase pgp export --secret > keybase-private.key

Let's import and edit:

gpg --allow-secret-key-import --import keybase-private.key
gpg --import keybase-public.key
gpg --edit-key MYEMAIL@DOMAIN.COM

Inside the gnupg shell:

gpg> adduid
Real name: YOUR NAME
Email address: MYOTHEREMAIL@DOMAIN.COM
Comment: <just left empty, hit enter>

Out of the gnupg shell, update your keybase account with the new public key:

keybase pgp update

Check your new public key: keybase pgp export

Update your github or whatever accounts you need to recognize the new email as "verified".

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