TPM 2.0: failed to sign

Hello.
On my PC in ZDEW all services on any JWT token are unavailable. On my laptop there are no problems. I can take the same token and it will work on my laptop.
Error:

[2025-05-18T14:10:15.087Z]   ERROR tlsuv:engine.c:923 openssl: handshake was terminated: error:00000005:lib(0)::reason(5)
[2025-05-18T14:10:15.087Z]   ERROR tlsuv:tls_link.c:113 TLS(000001f140c1bae0) handshake error error:00000005:lib(0)::reason(5)
[2025-05-18T14:10:15.087Z]   ERROR tlsuv:http.c:188 handshake failed status[3]: error:00000005:lib(0)::reason(5)
[2025-05-18T14:10:15.087Z]    WARN ziti-sdk:ziti_ctrl.c:177 ctrl_resp_cb() ctrl[https://homedatasrv.ru:8441] request failed: -4079(software caused connection abort)
[2025-05-18T14:10:15.087Z]    WARN ziti-sdk:ziti_ctrl.c:336 internal_version_cb() ctrl[https://homedatasrv.ru:8441] CONTROLLER_UNAVAILABLE(software caused connection abort)
[2025-05-18T14:10:15.087Z]    WARN ziti-sdk:ziti.c:2012 version_pre_auth_cb() ztx[0] failed to get controller version: CONTROLLER_UNAVAILABLE/software caused connection abort
[2025-05-18T14:10:15.087Z]    WARN ziti-sdk:ziti_ctrl.c:177 ctrl_resp_cb() ctrl[https://homedatasrv.ru:8441] request failed: -4079(software caused connection abort)
[2025-05-18T14:10:15.087Z]    INFO ziti-sdk:ziti_ctrl.c:180 ctrl_resp_cb() ctrl[https://homedatasrv.ru:8441] attempting to switch endpoint
[2025-05-18T14:10:15.087Z]    WARN ziti-sdk:ziti_ctrl.c:600 ctrl_next_ep() ctrl[https://homedatasrv.ru:8441] no controllers are online
[2025-05-18T14:10:15.087Z]    WARN ziti-sdk:ziti.c:673 ext_jwt_singers_cb() ztx[0] failed to get external auth providers: software caused connection abort
[2025-05-18T14:10:15.087Z] VERBOSE ziti-sdk:ziti_ctrl.c:145 start_request() ctrl[https://homedatasrv.ru:8441] starting GET[/version]
[2025-05-18T14:10:15.087Z]   DEBUG ziti-sdk:ziti_ctrl.c:1087 ctrl_paging_req() ctrl[https://homedatasrv.ru:8441] starting paging request GET[/external-jwt-signers]
[2025-05-18T14:10:15.087Z] VERBOSE ziti-sdk:ziti_ctrl.c:1092 ctrl_paging_req() ctrl[https://homedatasrv.ru:8441] requesting /external-jwt-signers?limit=25&offset=0
[2025-05-18T14:10:15.087Z] VERBOSE ziti-sdk:ziti_ctrl.c:145 start_request() ctrl[https://homedatasrv.ru:8441] starting GET[/external-jwt-signers?limit=25&offset=0]
[2025-05-18T14:10:15.541Z]   ERROR tlsuv:win32_keychain.c:248 failed to sign: Доверенный платформенный модуль 2.0: недопустимый размер структуры.

If the last line is translated into English, the error is as follows:

Trusted Platform Module 2.0: invalid structure size.

Version: 2.6.4.0

How can I solve this problem?

I think I've found the solution for me.

  • Disable the use keychain flag
  • Quit the application
  • Create a new user (the error will be the same with the old user)
  • Download the JWT token
  • Import the token in the application

This way the error does not occur. Why doesn't it work for old users?
I might add that on the laptop the flag is enabled and there is no such problem.