SQ(1)
π SQ(1) β the manual page, but make it a group chat π
okay bestie, so this is sq(1), section 1 of the user commands manual, and today's main character is sq-sign β signing messages and data files. no cap, she's iconic. this is the Sequoia PGP girlies' domain and we're gonna understand every single flag together, fr fr. β¨
πΈ NAME πΈ
sq-sign β sign messages or data files ποΈβ¨
π¦ SYNOPSIS π¦
sq sign [OPTIONS] FILE
that's it. that's the whole vibe. one command, one FILE, a whole lotta OPTIONS. π
π DESCRIPTION π
not me explaining it plainly: this signs messages or data files. simple as.
she creates signed messages or detached signatures β and detached signatures? they're literally the girlies of software packaging. people use them to sign software packages like all the time. yep, detached signatures are often used to sign software packages. π«Ά
the converse operation is sq verify. so like, sq sign makes it, sq verify checks it. they're a duo. main characters both. π
and here's the important tea β: sq sign respects the reference time set by the top-level --time argument. When set, it uses the specified time instead of the current time, when determining what keys are valid, and it sets the signature's creation time to the reference time instead of the current time. so yes, --time is highkey powerful β it's doing double duty, deciding which keys count as valid AND stamping the signature's creation time. slay. β
β¨ OPTIONS β¨
π Subcommand options π
--appendβ Append a signature to existing signature. (adding to the pile, as one does π§)--binaryβ Emit binary data.--cleartextβ Create a cleartext-signed message.--merge=SIGNED-MESSAGEβ Merge signatures from the input and SIGNED-MESSAGE. combining the girls into one π--messageβ Create an inline-signed message.--mode=MODEβ Select the signature mode.
so, signing can happen in binary mode or in text mode. Text mode normalizes line endings, which makes signatures more robust when a text is transported over a channel which may change line endings. And the iconic advice: in doubt, create binary signatures. π«‘
- [default:
binary] - [possible values:
binary,text]
(that's all exact, bestie, don't @ me.)
--output=FILEβ Write to FILE or stdout if omitted.- [default:
-]
- [default:
--signature-file=SIGβ Create a detached signature file.--signature-notation NAME VALUEβ Add a notation to the signature.
listen, the deets matter here: a user-defined notation's name must be of the form name@a.domain.you.control.org. If the notation's name starts with a !, then the notation is marked as being critical. And here's the plot twist π: if a consumer of a signature doesn't understand a critical notation, then it will ignore the signature. The notation is marked as being human readable. so likeβ¦ respect the format, k? π
--signer=FINGERPRINT|KEYIDβ Create the signature using the key with the specified fingerprint or key ID.--signer-email=EMAILβ Create the signature using the key where a user ID includes the specified email address.--signer-file=PATHβ Create the signature using the key read from PATH.--signer-selfβ Sign using your default signer keys.
This adds the certificates listed in the configuration file under sign.signer-self to the list of signer keys.
and the iconic punchline: Currently, the list of keys to be added is empty. we love an honest queen π
--signer-userid=USERIDβ Create the signature using the key with the specified user ID.FILEβ Read from FILE or stdin if FILE is'-'.- [default:
-]
- [default:
π Global options π
See sq(1) for a description of the global options. (go read it, bestie, it's the mothership π)
π₯ EXAMPLES π₯
Create a signed message. π
sq sign --signer-file juliet-secret.pgp --message document.txt
Create a detached signature. π
sq sign --signer-file juliet-secret.pgp \
--signature-file=document.txt.sig document.txt
that backslash line-continuation? she's giving "I ran out of room on the line but I refuse to stop" energy. periodt. π
π SEE ALSO π
For the full documentation see <https://book.sequoia-pgp.org/>. π
π VERSION π
1.5.0
anyway, that's the whole page, no cap, every flag accounted for, nothing skipped, we ate and left no crumbs πβ¨
and for the cute sign-off: this lil' manual page lives under Sequoia PGP, version 1.5.0, section 1 of the manual, aka SQ(1). bye bestie, go sign something ππ¦π
π¦ where this page comes from
- fedora 43: sequoia-sq 1.5.0-1.fc43 Β· LGPL-2.0-or-later AND Apache-2.0 AND BSL-1.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-3.0 AND Unicode-DFS-2016 AND Zlib AND bzip2-1.0.6 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT)
- fedora 44: sequoia-sq 1.5.0-1.fc44 Β· LGPL-2.0-or-later AND Apache-2.0 AND BSL-1.0 AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-3.0 AND Unicode-DFS-2016 AND Zlib AND bzip2-1.0.6 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT)
- nixpkgs unstable: sequoia-sq 1.5.0
- opensuse-leap 16.0: sequoia-sq 1.5.0-bp160.1.1 Β· LGPL-2.0-or-later
- opensuse-leap 16.0: sequoia-sq 1.5.0-bp160.1.1 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms