Created
January 18, 2012 06:06
-
-
Save thomaslee/1631383 to your computer and use it in GitHub Desktop.
Generating & Publishing a GPG Key
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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