Confidentiality - Quick start

This is a quick walk through on the topics of key generation and typical uses of certificates.

Generating a key

Generate a key with name and email address User IDs:

$ sq key generate --own-key --name 'alice' --email 'alice@example.com' 

Export a key from the keystore into a file

$ sq key export --cert $FINGERPRINT > $KEYFILE

Import a key into keystore

If a key is only available as a file, it can be imported into the keystore:

$ sq key import $KEYFILE

Encrypt and decrypt a file

To encrypt a message or a file with another person's certificate:

$ sq encrypt --for-email alice@example.com message.txt

To decrypt a file using a key in the keystore:

$ sq decrypt message.pgp