tss2_policyexport(1)
π tss2_policyexport(1) β ur girl's guide to exporting policies β¨
okay so real quick: this is a page from the General Commands Manual, and yes bestie, it's a whole vibe. sit down, grab a strawberry drink π, and let's get into it.
πΈ NAME πΈ
tss2_policyexport(1) β that's literally the whole name section, no cap. she's minimal, she's iconic, she's giving less-is-more. π
π¦ SYNOPSIS π¦
tss2_policyexport [OPTIONS]
that's it. that's the whole incantation. options go in, magic comes out. π«
π SEE ALSO π
like, go read these too, they're the supporting cast and they ate:
fapi-config(5)β use this one to adjust Fapi parameters, like which cryptographic profile is getting used, the TCTI, or the directories for the Fapi metadata storages. very much the settings girlie. π§fapi-profile(5)β this one's for pinning down the cryptographic algorithms and parameters for all keys and operations of a specific TPM interaction. think: the name hash algorithm, the asymmetric signature algorithm, the scheme and its parameters, and PCR bank selection. iykyk. π₯
β¨ DESCRIPTION β¨
tss2_policyexport(1) β okay so what does she actually do? she exports a policy associated with a key, and she does it in JSON encoding. that's the whole assignment and she understood it. π
π OPTIONS π
these are the available options, bestie, and there are only three so you literally have no excuse:
-f,--forceβ force overwriting the output file. she will not ask, she will not hesitate, she will simply replace. π-o,--jsonPolicy=FILENAME or - (for stdout)β returns the JSON-encoded policy. and yes, you can pass-to yeet it straight to stdout instead of a file. π«Ά-p,--path=STRINGβ the path of the key. that's the one. π
π COMMON OPTIONS π
this collection of options is common to all tss2 programs and provides info that many users may expect. so like, the shared lore. π
-h,--help [man|no-man]β displays the tool's manpage. by default it attempts to invoke the manpager for the tool, but on failure it'll output a short tool summary. same behavior if you specify themanoption argument β except if explicitmanis requested, the tool will provide errors from man on stderr. if you specify theno-manoption, or the manpager just gives up, the short options get output to stdout.
to successfully use the manpages feature you need the manpages installed, or onMANPATH. seeman(1)for more details. no manpages, no slay. π
-v,--versionβ displays version information for this tool and supported tctis, then exits. a little goodbye kiss. π
π₯ EXAMPLE π₯
steal this, it's cute:
tss2_exportpolicy --path=HS/SRK/myRSASign --jsonPolicy=jsonPolicy.json
β RETURNS β
0 on success or 1 on failure. binary queen. either she ate or she didn't. π
π BUGS π
Github Issues. that's where the drama goes. π
π HELP π
See the Mailing List. the group chat, essentially. π¬
π§ License π§
This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). share the love, credit the girls. π«Ά
and that's the whole page! brought to you by tpm2-tools, dated APRIL 2019 β a classic, an era, a moment. mwah. πβ¨π
π¦ 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