Skip to content

Instantly share code, notes, and snippets.

@kremalicious
Created May 20, 2017 22:19
Show Gist options
  • Save kremalicious/03deeee15728df24ad6d875970333c8b to your computer and use it in GitHub Desktop.
Save kremalicious/03deeee15728df24ad6d875970333c8b to your computer and use it in GitHub Desktop.
Create & publish new GPG key incl. revocation certs
# Generate key pair and revocation certificate.
gpg --gen-key
gpg --output revoke.asc --gen-revoke <key-id>
# Export ASCII copy of the public key
gpg --export --armor <key-id> > pubkey.asc
# 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