How to enable custom hash value for tpm2?
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.