strip(1)
π strip(1) β bestie edition β¨
okay so this is strip(1), and it lives in the Sequoia Manual π (that's the Sequoia PGP crew, if you didn't know β hi besties π). Grab a strawberry π and let's get into it.
β¨ NAME β¨
strip β strips a User ID π«Ά
πΈ SYNOPSIS πΈ
strip [-o|--output] [-u|--userid] [-B|--binary] [-h|--help] [FILE]
π DESCRIPTION π
So. It strips a User ID. That's the whole vibe. π
β οΈ okay bestie listen up, this is the important part: this operation does not reliably remove User IDs from a certificate that has already been disseminated! π (OpenPGP software typically appends new information it receives about a certificate to its local copy of that certificate. Systems that have obtained a copy of your certificate with the User ID that you are trying to strip will not drop that User ID from their copy.)
Like, once it's out there, it's out there. The internet is forever, no cap. π
In most cases, you will want to use the sq revoke userid operation instead. That issues a revocation for a User ID, which can be used to mark the User ID as invalidated. That's the main character move. π
However, this operation can be useful in very specific cases, in particular: to remove a mistakenly added User ID before it has been uploaded to key servers or otherwise shared. So like, catch it early, before it hits the group chat. π
Stripping a User ID may change how a certificate is interpreted. This is because information about the certificate like algorithm preferences, the primary key's key flags, etc. is stored in the User ID's binding signature. Yeah. It's giving "everything is connected." π¦
π OPTIONS π
-o,--output=FILEβ Writes to FILE or stdout if omitted β¨-u,--userid=USERIDβ The User IDs to strip. Values must exactly match a User ID. No fuzzy matching, no vibes-based matching, exact only bestie π-B,--binaryβ Emits binary data π₯-h,--helpβ Print help information π«Ά[FILE]β Reads from FILE or stdin if omitted πΈ
π¦ EXAMPLES π¦
First, this generates a key β¨
sq key generate --userid "<juliet@example.org>" --export juliet.key.pgp
Then, this strips a User ID π
sq key userid strip --userid "<juliet@example.org>" \
--output juliet-new.key.pgp juliet.key.pgp
periodt. π
β SEE ALSO β
For the full documentation see <https://docs.sequoia-pgp.org/sq/>. π
sq(1) sq-armor(1) sq-autocrypt(1) sq-certify(1) sq-dearmor(1) sq-decrypt(1) sq-encrypt(1) sq-inspect(1) sq-key(1) sq-key-adopt(1) sq-key-attest-certifications(1) sq-key-extract-cert(1) sq-key-generate(1) sq-key-password(1) sq-key-userid(1) sq-key-userid-add(1) sq-keyring(1) sq-keyserver(1) sq-packet(1) sq-revoke(1) sq-sign(1) sq-verify(1) sq-wkd(1)
and that's the whole page bestie!! π«Ά this lil beauty is from sq 0.26.0, dated July 2022 β iconic, lowkey vintage, we stan a classic. ππ mwah, go strip responsibly (or better yet, go revoke) β¨πΈ
π¦ where this page comes from
- debian bookworm: sq 0.27.0-2+b1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms