tss2_sign(1)
π tss2_sign(1) β General Commands Manual, bestie
Okay so real talk, this is tss2_sign(1), and it's genuinely one of the most useful little tools in the TPM toolbox. Buckle up π
β¨ NAME β¨
tss2_sign(1) β yeah that's it, that's the name, the manpage literally just vibes there with a dash and no description, iconic honestly π
π¦ SYNOPSIS π¦
tss2_sign [OPTIONS]
π SEE ALSO π
Lowkey the most important part, do NOT skip:
fapi-config(5)β this one's for adjusting Fapi parameters, like which cryptographic profile gets used, and the TCTI or directories for the Fapi metadata storages.fapi-profile(5)β this one decides the cryptographic algorithms and parameters for all keys and operations of a specific TPM interaction. We're talking the name hash algorithm, the asymmetric signature algorithm, scheme and parameters, and PCR bank selection. That's a lot, but she handles it π
πΈ DESCRIPTION πΈ
tss2_sign(1) β okay so here's the tea: this command uses a key inside the TPM to sign a digest value, using the TPM signing schemes as specified in the cryptographic profile (cf., fapi-profile(5)). Periodt.
And the digest? It can be handed to you as an argument directly, OR computed from data you pass as an argument. Your call, bestie π«Ά
π OPTIONS π
These are the available options:
-p,--keyPath=STRINGβ the path to the signing key. That's the whole point, no key no sign, iykyk.-s,--padding=STRINGβ the padding scheme used. Possible values are "RSA_SSA" and "RSA_PSS" (case insensitive, she's flexible like that). This is an optional parameter β if you omit it, the default padding specified in the cryptographic profile gets used (cf.,fapi-profile(5)).-c,--certificate=FILENAMEor-(for stdout) β the certificate associated withkeyPath, in PEM format. Optional parameter β¨-d,--digest=FILENAMEor-(for stdin) β the data to be signed, already hashed. Note the "already hashed" part, that's the whole plot twist.-m,--data=FILENAMEor-(for stdin) β the data from which the hash is computed, which is then signed. Same energy, different starting point π-f,--forceβ force overwriting the output file. Use responsibly, she's powerful.-k,--publicKey=FILENAMEor-(for stdout) β the public key associated withkeyPath, in PEM format. Optional parameter π¦-o,--signature=FILENAMEor-(for stdout) β returns the signature in binary form. Binary! Not hex, not base64, binary, okay? π
π COMMON OPTIONS π
This collection of options are common to all tss2 programs and provide information that many users may expect. Like, the standard bestie package:
-h,--help [man|no-man]β display the tool's manpage. By default it attempts to invoke the manpager for the tool, however, on failure it will output a short tool summary. Same behavior if the "man" option argument is specified β BUT if explicit "man" is requested, the tool will provide errors from man on stderr. If the "no-man" option is specified, or the manpager fails, the short options will be output to stdout.
Heads up bestie: to successfully use the manpages feature, the manpages need to be installed or onMANPATH. Seeman(1)for more details. Don't come for her if they're not installed π
-v,--versionβ display version information for this tool, supported tctis, and exit. Quick little vibe check and she's out π
π₯ EXAMPLE π₯
tss2_sign --keyPath=HS/SRK/myRSASign --padding="RSA_PSS" --digest=digest.file --signature=signature.file --publicKey=publicKey.file
Look at her go, ate that fr fr π
β RETURNS β
0 on success or 1 on failure. Simple, clean, no surprises. (Well. Mostly.)
π BUGS π
Github Issues.
π HELP π
See the Mailing List.
π License π
This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
Kay that's the whole page, mwah π β this was tpm2-tools, APRIL 2019, signing off β¨
π¦ where this page comes from
- arch rolling: tpm2-tools 5.8-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms