-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Set Platform Password -- phEnable May not Be SET using hierarchycontrol #3183
Comments
That actually works on the owner hierarchy.
To view if the hierarchy is enabled run the below command and look at the phEnable value: tpm2 getcap properties-variable
<snip>
TPM2_PT_STARTUP_CLEAR:
phEnable: 1
<snip>
Per Command Spec v1.59:
My understanding is that this is always enabled and the OS disables it on boot once it's done using it. I'll have @idesai comment when they return to the office. |
Just an FYI, the GitHub manual for tpm2_clear states it is run under the lockout or platform hierarchy and takes those authvalues as an argument. |
That is correct, TPM2_Clear command takes Platform or Lockout Authorization. My comment on, "It works on Owner hierarchy", is just one of many things that command changes in the TPM. The list as of 1.59 is:
See 24.6 of: https://trustedcomputinggroup.org/wp-content/uploads/TCG_TPM2_r1p59_Part3_Commands_pub.pdf |
Typically, platform hierarchy is closed in the PEI phase of the bios. The hierarchy is enabled and a random value is chosen as a password. An option to issue a TPM clear using platform hierarchy authorization is available in one of two forms:
The other option to clear the TPM, as stated, is to use the lockout authorization. |
I understand the platform password is empty by default. I am assuming the hierarchy is enabled because we can run tpm2_clear and the tpm is wiped.
How can we set the platform password to a new value? we have tried tpm2_changeauth -c p password, but it states it the hiereachy may not be enabled.
we have subsequently tried to enable the platform hierarchy by running: tpm2_hierarchycontrol -C p phEnable set
this fails as well with the error -- phEnable may not be SET using this command.
how do we enable the platform hierarchy and how do we set the password?
The text was updated successfully, but these errors were encountered: