SQ(1)
π SQ-KEY-PASSWORD β ok bestie, let's change that password π
no cap, this is the sq manual page for sq-key-password β the little subcommand that gives your secret key material a whole new password (or yeets the password entirely). it lives under User Commands and it's giving main character energy for your keyring's secrets πβ¨
πΈ SYNOPSIS πΈ
sq key password [OPTIONS]
β¨ DESCRIPTION β¨
okay so, changing the password protecting secret key material. that's the whole vibe. π
your secret key material can be protected by a password, and this subcommand changes it or clears it. both. your call, queen.
to strip the password either use --clear-password or supply a zero-length password when prompted for the new password. (yes, an empty password. it's a choice and we respect it π«Ά)
if a key is password protected, and the correct password was not supplied using the --password-file argument, the user is prompted for the password. likewise, if the new password isn't provided, the user is prompted. so basically it will just ask you, like a considerate bestie should π
π OPTIONS π
π Subcommand options π
--cert=FINGERPRINT|KEYIDβ change the password for the secret key material from the key with the specified fingerprint or key ID. you gotta tell it which key, bestie.--cert-email=EMAILβ change the password for the secret key material from the key where a user ID includes the specified email address. matching by email, iconic.--cert-file=PATHβ change the password for the secret key material from the key read from PATH. reading it from a file, we love a file.--cert-userid=USERIDβ change the password for the secret key material from the key with the specified user ID.--clear-passwordβ clear the password protecting the secret key material. poof. gone. no password, just vibes π--new-password-file=PASSWORD_FILEβ file containing password to encrypt the secret key material.
β οΈ heads up bestie: note that the entire key file will be used as the password including any surrounding whitespace like a trailing newline. the WHOLE file. newline included. do not come for me when it doesn't work because of one sneaky \n π
--output=FILEβ write to FILE or stdout if omitted.
π Global options π
see sq(1) for a description of the global options. (we're not re-explaining the whole squad here, go read the main page π)
π¦ EXAMPLES π¦
change the password for all of Alice's keys to the password in the specified file. look at this glow-up:
sq key password --new-password-file password-file.txt --cert \
EB28F26E2739A4870ECC47726F0073F60FD0CBF0
clear the password protection for all of Alice's keys. bye bye password π
sq key password --password-file password-file.txt \
--clear-password --cert \
EB28F26E2739A4870ECC47726F0073F60FD0CBF0
π SEE ALSO π
for the full documentation see <https://book.sequoia-pgp.org/>. fr fr, go read the book πβ¨
β VERSION β
1.5.0
and that's the whole page, bestie!! this lil' beauty is brought to you by Sequoia PGP, version 1.5.0 β run it, love it, protect your secrets. mwah ππ«Ά
π¦ 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