IMPORTPEM(1)

πŸ“¦
version 1045 Β· 3 versions
, in debian bookworm, ubuntu jammy, ubuntu noble, ubuntu questing

🌸 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

  • -hp parent handle
    • [-pwdp password for parent (default empty)] β€” password for the parent, and if you don't give one it's just empty, nbd
    • -ipem PEM 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
    • [-pwdk password for key (default empty)] β€” password for the key, defaults to empty
    • -opu public area file name β€” required, public area file name
    • -opr private area file name β€” required, private area file name
    • [-nalg name hash algorithm (sha1, sha256, sha384) (default sha256)] β€” name hash algorithm, pick from sha1, sha256, sha384, and it defaults to sha256
    • [-halg scheme hash algorithm (sha1, sha256, sha384) (default sha256)] β€” scheme hash algorithm, same trio: sha1, sha256, sha384, default sha256
    • [-pol policy 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

  • -hp parent handle
    • [-pwdp password for parent (default empty)]
    • -ipem PEM format key pair
    • [-rsa (default)]
    • [-ecc (uses NIST P256)]
    • [-pwdk password for key (default empty)]
    • -opu public area file name
    • -opr private area file name
    • [-nalg name hash algorithm (sha1, sha256, sha384) (default sha256)]
    • [-halg scheme hash algorithm (sha1, sha256, sha384) (default sha256)]
    • [-pol policy 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