GPG (GnuPG) examples

from blog lmno.lol @alvaro, | ↗ original
Generate key gpg --full-generate-key Export private key gpg --export-secret-key -a > Import key gpg --import Delete public key gpg --delete-keys Delete private key gpg --delete-secret-keys Edit key gpg --edit-key gpg> uid (lists IDs) gpg> uid 2 (marks ID) gpg> deluid (deletes marked ID) Really remove this user ID? (y/N) y Change passphrase...