Package: libtpm2-pkcs11-tools
Version: 1.9.1-0.1
I got
% tpm2_ptool init --path . --primary-handle 0x81010000
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/tpm2_pkcs11/commandlets_store.py", line
125, in __call__
(_, pobj_ctx) = tpm2.readpublic(handle)
~~~~~~~~~~~~~~~^^^^^^^^
File "/usr/lib/python3/dist-packages/tpm2_pkcs11/tpm2.py", line 121, in
readpublic
raise RuntimeError("Could not execute tpm2_readpublic: %s" %
stderr)
RuntimeError: Could not execute tpm2_readpublic:
b'WARNING:esys:src/tss2-esys/api/Esys_ReadPublic.c:320:Esys_ReadPublic_Finish()
Received TPM Error
\nERROR:esys:src/tss2-esys/esys_tr.c:278:Esys_TR_FromTPMPublic_Finish() Error
ReadPublic ErrorCode (0x0000018b)
\nERROR:esys:src/tss2-esys/esys_tr.c:402:Esys_TR_FromTPMPublic() Error TR
FromTPMPublic ErrorCode (0x0000018b) \nERROR: Esys_TR_FromTPMPublic(0x18B) -
tpm:handle(1):the handle is not correct for the use\nERROR: Unable to run
tpm2_readpublic\n'
Could not execute tpm2_readpublic:
b'WARNING:esys:src/tss2-esys/api/Esys_ReadPublic.c:320:Esys_ReadPublic_Finish()
Received TPM Error
\nERROR:esys:src/tss2-esys/esys_tr.c:278:Esys_TR_FromTPMPublic_Finish() Error
ReadPublic ErrorCode (0x0000018b)
\nERROR:esys:src/tss2-esys/esys_tr.c:402:Esys_TR_FromTPMPublic() Error TR
FromTPMPublic ErrorCode (0x0000018b) \nERROR: Esys_TR_FromTPMPublic(0x18B) -
tpm:handle(1):the handle is not correct for the use\nERROR: Unable to run
tpm2_readpublic\n'
AFAIU it means 0x81010000 is not in use, but somebody forgot to catch
the exception. Should be completed.
Regards
Harri