| SQV(1) | User Commands | SQV(1) |
sqv - An OpenPGP signature verification tool
sqv [OPTIONS] FILE
An OpenPGP signature verification tool.
sqv is a simple signature verification tool. It checks that signatures are valid, and correctly issued by one of the certificates in the specified keyring.
sqv can verify detached signatures, inline-signed messages, and messages using the Cleartext Signature Framework.
To verify detached signatures, use the `--signature-file` argument followed by the path to the detached signature file, and give the data file as first positional argument:
$ sqv --keyring=... --signature-file=image.iso.sig image.iso
To verify an inline-signed message, use the `--message` argument, and give the path to the inline-signed message as first positional argument. When verifying an inline-signed `--output` has to be given:
$ sqv --keyring=... --output=authenticated.txt \
--message signed.pgp
To verify a message using the Cleartext Signature Framework, use the `--cleartext` argument, and give the path to the message as first positional argument. When verifying an inline-signed `--output` has to be given:
$ sqv --keyring=... --output=authenticated.txt \
--cleartext message.txt
Finally, there is a legacy way to verify detached signatures, where the path to the signature file and the path to the data file are given as positional arguments. This form is deprecated, prefer the explicit `--signature-file` form.
By default, one signature must be valid. This can be changed using the `--signatures` arguments.
A signature is valid if a signing-capable key can verify the signature. The signing-capable key must be correctly bound to a certificate in the keyring, and it must not be revoked, or expired. The certificate must not be revoked or expired. The signature, the signing-capable key and the certificate must all be valid according to the cryptographic policy.
By default, sqv configures the cryptographic policy using </etc/crypto-policies/back-ends/sequoia.config>. That can be overwritten by setting the SEQUOIA_CRYPTO_POLICY environment variable to an alternate file. The path must be absolute. The file's format is described here: <https://docs.rs/sequoia-policy-config/>.
In some cases, the user expects signatures to be made within a certain temporal window. This can be enforced using the `--not-before` and `--not-after` arguments. The TIMESTAMPs must be given in ISO 8601 format (e.g. `2017-03-04T13:25:35Z`, `2017-03-04T13:25`, `20170304T1325+0830`, `2017-03-04`, `2017031`, etc.). If no timezone is specified, UTC is assumed.
Exits with a non-zero status if the specified number of signatures could not be verified.
Verify a detached signature.
sqv --keyring=trusted.certs --signature-file=document.sig \
document.txt
Verify a detached signature, legacy interface.
sqv --keyring=trusted.certs document.sig document.txt
Verify a signed message.
sqv --keyring trusted.certs --message document.pgp
Verify a message using the Cleartext Signature Framework.
sqv --keyring trusted.certs --clearsign document.pgp
1.3.0
| 1.3.0 | Sequoia PGP |