READPUBLIC(1)
π¦ READPUBLIC(1) π¦
okay bestie, so this is the manual for readpublic β it's a User Command, and yes the page is literally called READPUBLIC(1). grab a boba, we're doing this π
β¨ NAME β¨
readpublic β Runs TPM2_ReadPublic. that's it. that's the whole job. iconic honestly π«Ά
πΈ DESCRIPTION πΈ
okay so first thing first, the page opens with a little vibe check that did not pass:
--version-string=v1045 is not a valid option
yeah. that's just... sitting there at the top. noted. π
then, the actual deal:
readpublic
Runs TPM2_ReadPublic. no cap.
-hoobject handle β this is your object handle, bestie, you gotta give it one.[-opupublic key file name (default do not save)]β optional! this is where the public key file goes. default behaviour is do not save it, so if you want it saved, you gotta say so πΈ[-opempublic key PEM format file name (default do not save)]β also optional! same energy, but for the public key in PEM format. and again, default is do not save. so many files, so little time β¨-se[0-2]session handle / attributes (default PWAP) β the session handle and attributes situation. default is PWAP.
the attribute values are, and I'm quoting the page exactly:
01 continue 20 command decrypt 40 response encrypt 80 audit
so: 01 = continue, 20 = command decrypt, 40 = response encrypt, 80 = audit. memorise it, slay π
and THEN β and I cannot stress this enough β the page just... says all of that again. because apparently the first --version attempt also flopped:
--version is not a valid option
π so here's round two, identical twin energy:
readpublic
Runs TPM2_ReadPublic.
-hoobject handle[-opupublic key file name (default do not save)]β default is do not save.[-opempublic key PEM format file name (default do not save)]β default is do not save.-se[0-2]session handle / attributes (default PWAP)
01 continue 20 command decrypt 40 response encrypt 80 audit
same four attribute codes. same defaults. the manpage said "run it back" and ran it back π
lowkey important: this page literally contains two "is not a valid option" errors printed as part of the description text β--version-string=v1045and--version. I'm not editorialising, I'm just telling you what's on the page, fr fr. π
π SEE ALSO π
The full documentation for readpublic is maintained as a Texinfo manual. If the info and readpublic programs are properly installed at your site, the command
info readpublic
should give you access to the complete manual. that's your main character moment for deeper lore, bestie π
and that's the whole page!! mwah π stay hydrated, read your manpages, and remember: the vibe is immaculate but the flags are exact.
readpublic β July 2017 β READPUBLIC(1) π¦β¨π
π¦ 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