tpm2_nvread --index 0x1c00002 -a 0x40000001
ERROR: Tss2_Sys_NV_ReadPublic(0x18B) - tpm:handle(1):the handle is not correct for the use
ERROR: Failed to read NVRAM public area at index 0x1C00002
ERROR: Unable to run tpm2_nvread
pi@raspberrypi:~ $ tpm2_nvlist
pi@raspberrypi:~ $
Hello,
You may need to create it first:
$tpm2_createek -c endorsement_key.ctx -u endorsement_ppublic_key.pub
Then you can read it:
$tpm2_nvread -o endorsement_certificate.crt 0x1c00002
Regards