Dear team,

I am trying to create a primary key using Esys_CreatePrimary. The code works without any issues when trying on the simulator, but fails when trying on a hardware TPM using /dev/tpm0 

The error I am getting is:
WARNING:esys:src/tss2-esys/api/Esys_CreatePrimary.c:423:Esys_CreatePrimary_Finish() Received TPM Error 
ERROR:esys:src/tss2-esys/api/Esys_CreatePrimary.c:164:Esys_CreatePrimary() Esys Finish ErrorCode (0x000001c2) 
Esys_CreatePrimary fail

Can someone point out why I am getting this error? So far I am unable to pinpoint the problem.

Best regards,
Sourajit Mukhopadhyay