Keybase.io PGP key export
Public PGP IDs can help verify author identity of Git commits, social media, website, etc. A popular free service to share PGP IDs is Keybase.io. Below we demonstrate using Keybase.io PGP ID with Git with the keybase.io client.
Setup GPG on the laptop:
- Linux:
apt install gnupg
- macOS:
brew install gnupg
- Windows:
winget install gnupg.Gpg4win
Export Keybase.io public & private key and import into GPG:
keybase pgp export | gpg --import
keybase pgp export --secret | gpg --pinentry-mode=loopback --allow-secret-key --import
Verify PGP key:
gpg --list-secret-keys --keyid-format LONG
The first lines will be like:
sec rsa4096/<public_hex>
The hexadecimal part after the /
is a public reference to keybase.io keypair.
It’s shown on the keybase.io public profile, next to the key icon.