Closed marcelbuesing closed 4 years ago
I’m traveling at the moment and don’t have access to a YubiHSM2, however I’ll try your repro when I have time.
What OS are you running?
Can you try enabling debug logging? e.g. add env_logger
and set RUST_LOG=debug
Thanks for replying even when you are on vacation. I found the issue: there is a deadlock due to the following line
let session_guard = hsm_client.session()?;
Replacing this with the following line fixes the issue.
let session_id = hsm_client.session()?.id();
The dead lock occurs because this line acquired the session mutex and then during the put_wrap_key
fails to acquire the mutex here, blocking indefinitely.
Anyway, enjoy your vacation!
Hi,
i'm trying to put a wrap key to the HSM but the process is stuck indefinitely. It never reaches
I also encounter this issue when using the http connector, so I am assuming this is somehow my mistake. Using the yubihsm-shell it works as described below.
Output:
Using yubi-shell succeeds:
Hardware: Yubihsm 2