My AMD laptop's TPM (kernel driver tpm_crb) only supports one session at a time.
This causes the following to fail:
ssh-keygen -D libtpm2-pk11.so
C_OpenSession failed: 5
cannot read public key from pkcs11
I checked in a debugger and the reason for this is that /dev/tpm0 is opened twice - once in C_Initialize (which works) and another time in C_OpenSession (which fails).
Not sure at which level this problem would need to be resolved, if possible at all.
(I've, for now, hacked around this in a very ugly way)
My AMD laptop's TPM (kernel driver tpm_crb) only supports one session at a time.
This causes the following to fail:
I checked in a debugger and the reason for this is that
/dev/tpm0
is opened twice - once inC_Initialize
(which works) and another time inC_OpenSession
(which fails).Not sure at which level this problem would need to be resolved, if possible at all. (I've, for now, hacked around this in a very ugly way)