CREATEPRIMARY(1)
π NAME
okay so the page is called CREATEPRIMARY(1), it lives in the User Commands manual (section 1, bestie π
), and the whole thing is about a little program named createprimary.
createprimary β Runs TPM2_CreatePrimary π«Ά
π DESCRIPTION
bestie. sit down. first line of the description and I need you to see it with your own eyes:
--version-string=v1045 is not a valid option
that's it. that's the sentence. it's giving "we're just gonna say that up front". π
anyway, the actual vibe: createprimary creates a primary storage key β¨ and, as established, it Runs TPM2_CreatePrimary.
here's the whole flag situation, exactly as the page spells it out:
-hihierarchy (e,o,p,n) β defaultnull-pwdppassword for hierarchy β defaultempty-pwdpipassword file name for hierarchy β defaultempty-pwdkpassword for key β defaultempty-iuinPublic unique field file β defaultnone-opupublic key file name β defaultdo not saveoipempublic key PEM format file name β defaultdo not save-tkoutput ticket file name-choutput creation hash file name
π Asymmetric Key Algorithm
-rsaβ this one is the default β¨-ecccurve
and the curves you can hand it:
bnp256nistp256nistp384
πΈ Key attributes
-bldata blob for unseal (create only)-ifdata file name-denβ decryption, RSA, not storage, NULL scheme-deoβ decryption, RSA, not storage, OAEP scheme-desβ encryption/decryption, AES symmetric-116β for TPM rev 116 compatibility
π the storage / purpose girlies
-stβ storage[default for primary keys]-siβ signing-sirβ restricted signing-dauβ create unrestricted ECDAA key pair-darβ create restricted ECDAA key pair-khβ keyed hash (hmac)-dpβ derivation parent-gpβ general purpose, not storage
π attributes, the sequel
-ktβ and yes, it(can be specified more than once)πfβ fixedTPM (default for primary keys and derivation parents)pβ fixedParent (default for primary keys and derivation parents)nfβ no fixedTPM (default for non-primary keys)npβ no fixedParent (default for non-primary keys)
-daβ object subject to DA protection) (default no) β΅ yes the stray)is in the original, I don't make the rules π-polpolicy file β defaultempty-uwaβ userWithAuth attribute clear (default set)-nalgname hash algorithm (sha1,sha256,sha384) β defaultsha256-halgscheme hash algorithm (sha1,sha256,sha384) β defaultsha256
π¦ sessions
-se[0-2]β session handle / attributes (defaultPWAP)01β continue20β command decrypt40β response encrypt
and then. AND THEN. bestie, another one:
--version is not a valid option
like. okay. noted. π
and then it just... says the whole thing again:
createprimary creates a primary storage key
Runs TPM2_CreatePrimary
-hihierarchy (e,o,p,n) β defaultnull-pwdppassword for hierarchy β defaultempty-pwdpipassword file name for hierarchy β defaultempty-pwdkpassword for key β defaultempty-iuinPublic unique field file β defaultnone-opupublic key file name β defaultdo not saveoipempublic key PEM format file name β defaultdo not save-tkoutput ticket file name-choutput creation hash file name
Asymmetric Key Algorithm:
-rsaβ default β¨-ecccurve
curves:
bnp256nistp256nistp384
Key attributes:
-bldata blob for unseal (create only)-ifdata file name-denβ decryption, RSA, not storage, NULL scheme-deoβ decryption, RSA, not storage, OAEP scheme-desβ encryption/decryption, AES symmetric-116β for TPM rev 116 compatibility-stβ storage[default for primary keys]-siβ signing-sirβ restricted signing-dauβ create unrestricted ECDAA key pair-darβ create restricted ECDAA key pair-khβ keyed hash (hmac)-dpβ derivation parent-gpβ general purpose, not storage-ktβ(can be specified more than once)fβ fixedTPM (default for primary keys and derivation parents)pβ fixedParent (default for primary keys and derivation parents)nfβ no fixedTPM (default for non-primary keys)npβ no fixedParent (default for non-primary keys)
-daβ object subject to DA protection) (default no)-polpolicy file β defaultempty-uwaβ userWithAuth attribute clear (default set)-nalgname hash algorithm (sha1,sha256,sha384) β defaultsha256-halgscheme hash algorithm (sha1,sha256,sha384) β defaultsha256-se[0-2]β session handle / attributes (defaultPWAP)01β continue20β command decrypt40β response encrypt
periodt. that's the description, twice, because the page said so and I respect the page. π
π SEE ALSO
the full documentation for createprimary is maintained as a Texinfo manual. and if the info and createprimary programs are properly installed at your site, then this:
info createprimary
should give you access to the complete manual. no cap, that's the whole see-also. π«Ά
sign-off time, bestie: this page's footer reads createprimary, dated July 2017, and the title down there is CREATEPRIMARY(1) β so that's createprimary, July 2017, CREATEPRIMARY(1). iconic. slay. bye πβ¨π
π¦ where this page comes from
- debian bookworm: tss2 1045-2 Β· BSD-3-Clause
- ubuntu jammy: tss2 1045-1.2build1 Β· BSD-3-Clause
- ubuntu noble: tss2 1045-2.1build2 Β· BSD-3-Clause
- ubuntu questing: tss2 1045-3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms