GPG
Key Management
gpg --list-secret-keys --keyid-format=long
- List secret keysgpg --search-keys [search]
- search for keysgpg --refresh-keys
- refresh all local keysgpg --list-keys
- list all keys
Signing
gpg --detach-sign -a [file]
- sign (separately) a filegpg --clearsign [file]
- clearsign a filegpg -c [file]
- encrypt a file with passwordgpg -se -r [recipient key] [file]
- encrypt and sign a file for a recipient