Tools and guides for doing software development, data analytics, online privacy, and other things.
Follow the prompts after running the following command.
gpg --full-gen-key
Useful if you want to copy a key to another server.
gpg --export-secret-key -a -o example.pgp me@example.com
gpg -i example.pgp
Find the ID of the key you want to revoke (e.g., 21D5D74C
) and create a revocation certificate.
KEY_ID="21D5D74C"
REVOCATION_CERTIFICATE="$KEY_ID.asc"
gpg --output $REVOCATION_CERTIFICATE --gen-revoke $KEY_ID
Import the revocation certificate into your GPG client.
gpg --import $REVOCATION_CERTIFICATE
View the revocation was applied.
gpg -k $KEY_ID
Push revocation to key servers.
gpg --send-keys KEY_ID
docker run -it --rm -v ${PWD}/example.pgp:/example.pgp alpine
apk add gnupg
gpg