IMPORTPEM(1)
πΈ IMPORTPEM(1) πΈ
ok bestie, sit down, hydrate, because we're reading the manual for importpem β a lil User Commands situation, and honestly? it's giving chaos in the best way. π
β¨ NAME β¨
importpem β Runs TPM2_Import with PEM input
π¦ DESCRIPTION π¦
okay so first thing, no cap, the manual literally opens with this:
--version-string=v1045 is not a valid option
iconic of it to lead with a rejection. anyway. π
Import PEM
Runs TPM2_Import for a PEM RSA key
-hpparent handle[-pwdppassword for parent (default empty)]β password for the parent, and if you don't give one it's just empty, nbd-ipemPEM format key pair β this one's required, it's your PEM format key pair[-rsa(default)]β RSA is the default vibe here[-ecc(uses NIST P256)]β or go ECC, which uses NIST P256[-pwdkpassword for key (default empty)]β password for the key, defaults to empty-opupublic area file name β required, public area file name-oprprivate area file name β required, private area file name[-nalgname hash algorithm (sha1, sha256, sha384) (default sha256)]β name hash algorithm, pick fromsha1,sha256,sha384, and it defaults tosha256[-halgscheme hash algorithm (sha1, sha256, sha384) (default sha256)]β scheme hash algorithm, same trio:sha1,sha256,sha384, defaultsha256[-polpolicy file (default empty)]β policy file, empty by default
-se[0-2]session handle / attributes (default PWAP)
01 continue 20 command decrypt 40 response encrypt
and then bestie. and THEN. the manual does the whole thing AGAIN. same block, twice. it said what it said, and then it said it again. main character energy fr fr. π
--version is not a valid option
Import PEM
Runs TPM2_Import for a PEM RSA key
-hpparent handle[-pwdppassword for parent (default empty)]-ipemPEM format key pair[-rsa(default)][-ecc(uses NIST P256)][-pwdkpassword for key (default empty)]-opupublic area file name-oprprivate area file name[-nalgname hash algorithm (sha1, sha256, sha384) (default sha256)][-halgscheme hash algorithm (sha1, sha256, sha384) (default sha256)][-polpolicy file (default empty)]
-se[0-2]session handle / attributes (default PWAP)
01 continue 20 command decrypt 40 response encrypt
same facts, second time, no extra lore added. we love a consistent queen. π
π SEE ALSO π
The full documentation for importpem is maintained as a Texinfo manual. If the info and importpem programs are properly installed at your site, the command
info importpem
should give you access to the complete manual.
and that's the whole page, bestie!! π this edition of the manual is dated July 2017 and the source/version line signs off with the name importpem β so like, mention it, remember it, it's part of the lore. now go import that PEM. slay. πβ¨π¦
π¦ 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