LOAD_TPM2_KEY(1)

πŸ“¦ version 4.3.0, in opensuse-leap 16.0

πŸ’– LOAD_TPM2_KEY(1) πŸ’–

okay so bestie, welcome to the load_tpm2_key page β€” it's a User Commands girlie and she's here to make your TPM life cute and permanent ✨


πŸŽ€ NAME πŸŽ€

load_tpm2_key β€” load a tpm2 key at a permanent index 🫢


🌸 SYNOPSIS 🌸

load_tpm2_key [options] <filename> <nvindex>

πŸ¦‹ DESCRIPTION πŸ¦‹

So like, this is the tool you use to load up keys that were made by create_tpm2_key(1) into a permanent NV index. Yes, permanent β€” she's not a guest, she's moving in πŸ’…

Why would you even do that? Two whole reasons, and honestly both slay:

  • you want an unrestricted key that's always accessible to the TPM without needing a key file lying around, or
  • you want a new restricted decryption key parent, so other keys can be created as its children. main character energy, honestly πŸ‘‘

✨ OPTIONS ✨

  • -b, --auth-parent <pwd> β€” specify the parent key password. the default is EmptyAuth (yes, no password, she's lowkey unlocked πŸ™ˆ)
  • -f, --force β€” force loading of a key with policy. literally forcing it, no cap πŸ’€
  • -h, --help β€” print this help message. the classic, the icon, the one everyone runs first πŸŽ€

🌈 EXAMPLES 🌈

Example one: create a TPM internal key and load it at index 81000101

create_tpm2_key -p 81000001 tmp.key
load_tpm2_key tmp.key 81000101

Example two: create a wrapped restricted decryption key at 81000101 and use it as the parent of a new key 🌸

openssl genrsa 2048 > key.priv
create_tpm2_key --restricted -w key.priv key.tpm
load_tpm2_key key.tpm 81000101
create_tpm2_key -p 81000101 newkey.tpm

πŸ‘‘ AUTHOR πŸ‘‘

Written by James Bottomley <James.Bottomley@HansenPartnership.com> β€” we stan 🫢


πŸ’€ REPORTING BUGS πŸ’€

Report bugs to <openssl-tpm2-engine@groups.io>. not me asking you to be nice about it, but like… be nice about it πŸ₯Ί


Copyright 2019 by James Bottomley License LGPL-2.1-only


fr fr, if something's broken, tell the mailing list before you tell me πŸ’–

okay that's the whole page bestie, go load some keys, mwah πŸ§šπŸ’œ

β€” load_tpm2_key version 4.3.0, dated August 2024, signing off ⭐πŸ’