tss2_createkey(1)
πΈ tss2_createkey (1) β from the General Commands Manual πΈ
okay bestie, welcome to the manual page for tss2_createkey β yes she's a whole General Commands Manual girlie, and yes she's about to make you a key. let's go π«Ά
β¨ NAME β¨
tss2_createkey(1) β literally just that, no cap. that's the name, that's the whole vibe π
π« SYNOPSIS π«
tss2_createkey [OPTIONS]
π¦ SEE ALSO π¦
fapi-config(5)β peek at this one if you wanna tweak your Fapi parameters, like which cryptographic profile gets used, or the TCTI, or the directories where the Fapi metadata storages live.fapi-profile(5)β this is the one that decides the cryptographic algorithms and parameters for all the 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. she's in charge of the whole aesthetic β¨
π DESCRIPTION π
So. tss2_createkey(1) β this command creates a key inside the TPM and stores it in the FAPI metadata store, and if you ask nicely it'll also store it persistently inside the TPM. πΎ
Depending on the key type you specify, the cryptographic algorithms and parameters for the created key are determined by the corresponding cryptographic profile β cf., fapi-profile(5). so like, the profile is the main character here, you're just picking the type π
π OPTIONS π
These are the available options:
-p,--path=STRINGβ the path to the new key. that's it, that's the whole thing π£οΈ-t,--type=STRINGβ identifies the intended usage. optional parameter, bestie. types may be any comma-separated combination of:"sign"β sets the sign attribute of a key."decrypt"β sets the decrypt attribute of a key.- Hint: if neither sign nor decrypt are provided, both attributes are set. π
"restricted"β sets the restricted attribute of a key.- Hint: if restricted is set, sign or decrypt (but not both) need to be set. β οΈ
"exportable"β clears thefixedTPMandfixedParentattributes of a key or sealed object."noda"β sets the noda attribute of a key or NV index."system"β stores the data blobs and metadata for a created key or seal in the system-wide directory instead of user's personal directory.- A hexadecimal number (e.g.
"0x81000001") β marks a key object to be made persistent and sets the persistent object handle to this value.
-P,--policyPath=STRINGβ the policy to be associated with the new key. optional parameter. if you omit it, then no policy will be associated with the key. and here's how apolicyPathis built: it's composed of two elements, separated by/. apolicyPathstarts with/policy. the second path element identifies the policy or policy template using a meaningful name. iykyk π-a,--authValue=STRINGβ the new UTF-8 password. optional parameter. if it is neglected then the user is queried interactively for a password. to set no password, this option should be used with the empty string (""). and the maximum password size is determined by the digest size of the chosen name hash algorithm in the cryptographic profile (cf.,fapi-profile(5)). for example, choosing SHA256 as hash algorithm allows passwords of a maximum size of 32 characters. so like, know your limits π
π COMMON OPTIONS π
this collection of options are common to all tss2 programs and provide information that many users may expect. the group chat classics π«Ά
-h,--help [man|no-man]β display the tool's 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 from man on 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. cute and quick π«
π₯ EXAMPLE π₯
Create a key without password
tss2_createkey --path=HS/SRK/myRsaCryptKey --type="noDa, decrypt" --authValue=""
Create a key, ask for password on the command line
tss2_createkey --path=HS/SRK/myRsaCryptKey --type="noDa, decrypt"
Create a key with password "abc".
tss2_createkey --path=HS/SRK/myRsaCryptKey --type="noDa, decrypt" --authValue=abc
β RETURNS β
0 on success or 1 on failure. that's the whole mood chart, no in-between π
π BUGS π
Github Issues β you know where to find them.
π§ HELP π§
See the Mailing List.
π License π
This work is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0).
ok that's the whole page, bestie. go forth and create keys, you absolute icon π
and shoutout to tpm2-tools, dated APRIL 2019 β that's the source and version, and yes she's been serving since 2019 πβ¨πΈ
π¦ 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