tpm2-software / tpm2-tss

OSS implementation of the TCG TPM2 Software Stack (TSS2)
https://tpm2-software.github.io
BSD 2-Clause "Simplified" License
735 stars 361 forks source link

Received TPM Error #2838

Closed mittwerk closed 4 months ago

mittwerk commented 4 months ago

Hi all, I have ssh key written in tpm2, everything was working, today I tried to download repository from gitlab and got this error:

WARNING:esys:src/tss2-esys/api/Esys_StartAuthSession.c:390:Esys_StartAuthSession_Finish() Received TPM Error 
ERROR:esys:src/tss2-esys/api/Esys_StartAuthSession.c:136:Esys_StartAuthSession() Esys Finish ErrorCode (0x0000018b) 
ERROR: Esys_StartAuthSession: tpm:handle(1):the handle is not correct for the use
ERROR: Could not start Auth Session with the TPM.
ERROR: Error unsealing wrapping key
C_SignInit failed: 5
pkcs11_get_key failed
sign_and_send_pubkey: signing failed for ECDSA "": error in libcrypto
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists

ssh-keygen -D /usr/lib/x86_64-linux-gnu/libtpm2_pkcs11.so.1

outputs my key.