tss2_gettpm2object(1)
πΈ NAME πΈ
okay so bestie, this is tss2_gettpm2object(1) from the General Commands Manual β it's giving "make FAPI objects into context files for tpm2 tool commands" energy. π
β¨ SYNOPSIS β¨
tss2_gettpm2object [OPTIONS]
π¦ SEE ALSO π¦
fapi-config(5)β to adjust Fapi parameters like the used cryptographic profile and TCTI or directories for the Fapi metadata storages. π«Άfapi-profile(5)β to determine the cryptographic algorithms and parameters for all keys and operations of a specific TPM interaction like the name hash algorithm, the asymmetric signature algorithm, scheme and parameters and PCR bank selection. β¨
π DESCRIPTION π
okay so with tss2_gettpm2object(1), you can create context files for FAPI objects which can be used by tpm2 tool commands. Iconic, no cap. π
For persistent object, only the textual representation of the handle number as hex number will be written β and for keys, a tpm2 tool context file will be written. Slay. π
If the default TCTI differs from the FAPI profile default, the tcti can be defined with the -T (βtcti) option. π¦
π¨ note: To avoid wrongnv_writtenstate in keystore before writing data to the NV ram withtpm2_nvwrite, at least an empty string should be written withtss2_nvwrite. Do not skip this, bestie β it's literally in the manual. π
π OPTIONS π
These are the available options:
-f,--forceβ Force overwriting the output file. π-p,--path=STRINGβ Path of the object for which the application data will be loaded. πΈ-c,--context=FILENAME or - (for stdout)β The returned key context or handle. π¦
π COMMON OPTIONS π
This collection of options are common to all tss2 programs and provide information that many users may expect. π«Ά
-h,--help [man|no-man]β Display the tools manpage. By default, it attempts to invoke the manpager for the tool, however, on failure will output a short tool summary. This is the same behavior if the βmanβ option argument is specified, however if explicit βmanβ is requested, the tool will provide errors frommanon stderr. If the βno-manβ option is specified, or the manpager fails, the short options will be output to stdout.
To successfully use the manpages feature requires the manpages to be installed or on MANPATH, See man(1) for more details. π
-v,--versionβ Display version information for this tool, supported tctis and exit. β¨
π₯ EXAMPLES π₯
tss2_gettpm2object --path=/HS/SRK/myRSACrypt --key-context=mykey.ctx
tss2_gettpm2object --path=/nv/Owner/mynv -c-
The command can be used in options of tpm2 commands:
handle=$(tss2_gettpm2object --path=/nv/Owner/mynv -c-)
tpm2_nvread $handle
π RETURNS π
0 on success or 1 on failure. π―
π 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). π
okay that's the whole page, bestie β sourced from tpm2-tools, dated APRIL 2019, and it's tss2_gettpm2object(1). 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