Álvaro Ramírez
GPG (GnuPG) examples
Generate key
gpg --full-generate-key
Export private key
gpg --export-secret-key -a <keyid> > <private.asc>
Import key
gpg --import < <private.asc>
Delete public key
gpg --delete-keys <keyid>
Delete private key
gpg --delete-secret-keys <keyid>
Edit key
gpg --edit-key <keyid> gpg> uid (lists IDs) gpg> uid 2 (marks ID) gpg> deluid (deletes marked ID) Really remove this user ID? (y/N) y
Change passphrase of the secret key
gpg --edit-key Your-Key-ID-Here gpg> passwd gpg> save