sq - A command-line frontend for Sequoia, an implementation of OpenPGP
Functionality is grouped and available using subcommands. Currently, this interface is completely stateless. Therefore, you need to supply all configuration and certificates explicitly on each invocation.
OpenPGP data can be provided in binary or ASCII armored form. This will be handled automatically. Emitted OpenPGP data is ASCII armored by default.
We use the term "certificate", or cert for short, to refer to OpenPGP keys that do not contain secrets. Conversely, we use the term "key" to refer to OpenPGP keys that do contain secrets.
sq [FLAGS] [OPTIONS] <SUBCOMMAND>
- --known-notation NOTATION
- Adds NOTATION to the list of known notations. This is used when validating signatures. Signatures that have unknown notations with the critical bit set are considered invalid.
- Prints this message or the help of the given subcommand(s)
- Decrypts a message
Decrypts a message using either supplied keys, or by prompting for a password. Any signatures are checked using the supplied certificates.
The converse operation is "sq encrypt".
- Encrypts a message
Encrypts a message for any number of recipients and with any number of passwords, optionally signing the message in the process.
The converse operation is "sq decrypt".
- Signs messages or data files
Creates signed messages or detached signatures. Detached signatures are often used to sign software packages.
The converse operation is "sq verify".
- Verifies signed messages or detached signatures
When verifying signed messages, the message is written to stdout or the file given to --output.
When a detached message is verified, no output is produced. Detached signatures are often used to sign software packages.
The converse operation is "sq sign".
- Converts binary to ASCII
To make encrypted data easier to handle and transport, OpenPGP data can be transformed to an ASCII representation called ASCII Armor. sq emits armored data by default, but this subcommand can be used to convert existing OpenPGP data to its ASCII-encoded representation.
The converse operation is "sq dearmor".
- Converts ASCII to binary
To make encrypted data easier to handle and transport, OpenPGP data can be transformed to an ASCII representation called ASCII Armor. sq transparently handles armored data, but this subcommand can be used to explicitly convert existing ASCII-encoded OpenPGP data to its binary representation.
The converse operation is "sq armor".
- Inspects data, like file(1)
It is often difficult to tell from cursory inspection using cat(1) or file(1) what kind of OpenPGP one is looking at. This subcommand inspects the data and provides a meaningful human-readable description of it.
- Manages keys
We use the term "key" to refer to OpenPGP keys that do contain secrets. This subcommand provides primitives to generate and otherwise manipulate keys.
Conversely, we use the term "certificate", or cert for short, to refer to OpenPGP keys that do not contain secrets. See "sq keyring" for operations on certificates.
- Manages collections of keys or certs
Collections of keys or certficicates (also known as "keyrings" when they contain secret key material, and "certrings" when they don't) are any number of concatenated certificates. This subcommand provides tools to list, split, join, merge, and filter keyrings.
Note: In the documentation of this subcommand, we sometimes use the terms keys and certs interchangeably.
- Certifies a User ID for a Certificate
Using a certification a keyholder may vouch for the fact that another certificate legitimately belongs to a user id. In the context of emails this means that the same entity controls the key and the email address. These kind of certifications form the basis for the Web Of Trust.
This command emits the certificate with the new certification. The updated certificate has to be distributed, preferably by sending it to the certificate holder for attestation. See also "sq key attest-certification".
- Low-level packet manipulation
An OpenPGP data stream consists of packets. These tools allow working with packet streams. They are mostly of interest to developers, but "sq packet dump" may be helpful to a wider audience both to provide valuable information in bug reports to OpenPGP-related software, and as a learning tool.
- Communicates certificates using Autocrypt
Autocrypt is a standard for mail user agents to provide convenient end-to-end encryption of emails. This subcommand provides a limited way to produce and consume headers that are used by Autocrypt to communicate certificates between clients.
For the full documentation see <https://docs.sequoia-pgp.org/sq/>.
Azul <firstname.lastname@example.org> Igor Matuszewski <email@example.com> Justus Winter <firstname.lastname@example.org> Kai Michaelis <email@example.com> Neal H. Walfield <firstname.lastname@example.org> Nora Widdecke <email@example.com> Wiktor Kwapisiewicz <firstname.lastname@example.org>
|JANUARY 2021||0.24.0 (SEQUOIA-OPENPGP 1.0.0)|