Skip to content

Instantly share code, notes, and snippets.

@thomaslee
Created January 18, 2012 06:06
Show Gist options
  • Save thomaslee/1631383 to your computer and use it in GitHub Desktop.
Save thomaslee/1631383 to your computer and use it in GitHub Desktop.
Generating & Publishing a GPG Key
1. Generate key pair and revocation certificate.
$ gpg --gen-key
$ gpg --output revoke.asc --gen-revoke <key-id>
2. Export ASCII copy of the key (often useful!)
$ gpg --export --armor <key-id> >pubkey.asc
3. Set new keyserver (default is busted on Linux Mint 12 -- others too?): e.g. hkp://stinkfoot.org
$ vim $HOME/.gnupg/gpg.conf
4. Publish the public key:
$ gpg --send-keys <key-id>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment