Photo by regularguy.eth on Unsplash
GnuPG key management cheat sheet
Commonly used commands for managing keys with GnuPG (GPG).
# Generate new key
$ gpg --full-generate-key
# List all keys
$ gpg --list-keys
# List fingerprint for all keys
$ gpg --fingerprint
# Delete a secret key
$ gpg --delete-secret-key <key-id>
# Delete private and public key
$ gpg --delete-key <key-id>