Skip to content

Instantly share code, notes, and snippets.

@DariuszO
Forked from kremalicious/create-gpg-key.sh
Created December 4, 2019 12:14
Show Gist options
  • Save DariuszO/4a96285104adbc8d2b6aefa9e9984351 to your computer and use it in GitHub Desktop.
Save DariuszO/4a96285104adbc8d2b6aefa9e9984351 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