Skip to content

Instantly share code, notes, and snippets.

@douglasmiranda
Created July 19, 2018 05:51
Show Gist options
  • Star 23 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save douglasmiranda/95d5842ab6e2e5c425f260c3c5d8ebf7 to your computer and use it in GitHub Desktop.
Save douglasmiranda/95d5842ab6e2e5c425f260c3c5d8ebf7 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".

@marcofleck
Copy link

I did not receive anything

@surjikal
Copy link

surjikal commented Oct 2, 2021

Worked for me, thanks!

@jathanism
Copy link

jathanism commented Jan 24, 2022

If you get an error about ERROR Key corrupted: Unknown signature subpacket: 34 when you run keybase pop update, you might need to revise the preferences for your key. See: https://www.higithub.com/keybase/issue/keybase-issues/4025

@lifeofladi
Copy link

I followed this step to add an email to a GPG key. However when i list gpg keys using
gpg --list-keys after following this step, the newly added email doesn't show up.

How come?

@tigirer
Copy link

tigirer commented Jun 27, 2022

btww

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