How to enable custom hash value for tpm2?

Solution Verified - Updated -

Issue

  • tpm binding fails when using a custom hash value and logs the below error:
[root@localhost ~]# clevis luks bind -d /dev/vde  tpm2 {"hash":"sha512","pcr_bank":"sha512","key":"rsa","pcr_ids":"7"}'
ERROR: pcr-input-file filesize does not match pcr set-list
ERROR: Could not build pcr policy
ERROR: Unable to run tpm2_createpolicy

Environment

  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • UEFI Boot
  • TPM2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content