GnuPG Usage

User

Create Key

Important: GnuPG needs to be properly configured to use strong hashes before creating new keys.

Create backup copy of public and private keys

gpg --output pubkey.asc --armor --export KEY_ID
gpg --output seckey.asc --armor --export-secret-keys KEY_ID

Create Revocation Certificate

gpg --output revoke.asc --gen-revoke KEY_ID

Change or set passphrase on Key

gpg --edit-key KEY_ID

gpg> passwd

gpg> save

Change or set expiration on Key

gpg --edit-key KEY_ID

gpg> key 1
gpg> expire

gpg> save
gpg --send-key KEY_ID

Show Fingerprint

gpg --fingerprint KEY_ID

Sign someone elses key

gpg --edit-key KEY_ID

gpg> sign

gpg> save
gpg --send-key KEY_ID

Clearsign

FIXME

Binary signature

FIXME

Detached signature

FIXME

Encryption

FIXME

Decryption

FIXME