SQ(1)
π NAME π
okay bestie, welcome to sq-key-subkey-password β it's the SQ(1) girlie whose whole job is changing the password that protects your secret key material. that's it. that's the gig. π
β¨ SYNOPSIS β¨
sq key subkey password [OPTIONS]
π DESCRIPTION π
so, plot twist: secret key material can be protected by a password. iconic. this subcommand changes or clears the password of one or more keys. lowkey powerful.
wanna strip the password entirely? you got two options, queen:
- use
--clear, or - just supply a zero-length password when it prompts you for the new one. yes, empty. give it nothing. it'll understand. π
if a key is password protected and the correct password wasn't handed over using the --password-file argument, the user gets prompted for the password. same energy if the new password isn't provided β you get prompted for that too. no cap. π«Ά
πΈ OPTIONS πΈ
π¦ Subcommand options π¦
--cert=FINGERPRINT|KEYIDβ change the password for the secret key material of the specified (sub)keys from the key with the specified fingerprint or key ID. iykyk π--cert-email=EMAILβ change the password for the secret key material of the specified (sub)keys from the key where a user ID includes the specified email address π§--cert-file=PATHβ change the password for the secret key material of the specified (sub)keys from the key read from PATH π--cert-userid=USERIDβ change the password for the secret key material of the specified (sub)keys from the key with the specified user ID πͺͺ--clear-passwordβ clear the password protecting the secret key material. bye bye protection, we hardly knew ye β¨--key=FINGERPRINT|KEYIDβ change the password protecting the specified key's secret key material π--new-password-file=PASSWORD_FILEβ file containing password to encrypt the secret key material π
heads up bestie: the entire key file gets used as the password, and that includes any surrounding whitespace, like a trailing newline. so don't get caught lacking by a sneaky \n at the end. π
--output=FILEβ write to FILE, or to stdout if you just... don't. periodt π
π Global options π
- go peek at
sq(1)for a description of the global options, bestie. they live over there. π«Ά
π₯ EXAMPLES π₯
okay so, changing the password for Alice's signing key to the password sitting in the specified file:
sq key subkey password --new-password-file=password-file.txt \
--cert=EB28F26E2739A4870ECC47726F0073F60FD0CBF0 \
--key=42020B87D51877E5AF8D272124F3955B0B8DECC8
and clearing the password protection for Alice's signing key:
sq key subkey password --password-file=password-file.txt \
--clear-password \
--cert=EB28F26E2739A4870ECC47726F0073F60FD0CBF0 \
--key=42020B87D51877E5AF8D272124F3955B0B8DECC8
ate that. no crumbs. π
π SEE ALSO π
for the full documentation see <https://book.sequoia-pgp.org/> π
π VERSION π
1.5.0
and that's a wrap on our little SQ(1) moment β¨ this was Sequoia PGP, version 1.5.0, and yes it really is all about that sq-key-subkey-password life. go protect your keys, bestie, you're the main character πππ¦πΈπ«Ά
π¦ 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