Sc-hsm-tool.exe fails to read Nitrokey

Faulting application name: sc-hsm-tool.exe, version: 0.26.1.0, time stamp: 0x678681fe
Faulting module name: sc-hsm-tool.exe, version: 0.26.1.0, time stamp: 0x678681fe
Exception code: 0xc0000409
Fault offset: 0x000000000014313c
Faulting process ID: 0x2930
Faulting application start time: 0x01dc49217b91f2a1
Faulting application path: C:\Program Files\OpenSC Project\OpenSC\tools\sc-hsm-tool.exe
Faulting module path: C:\Program Files\OpenSC Project\OpenSC\tools\sc-hsm-tool.exe
Report ID: b814b2f8-1321-4727-af22-36715df3d1ec
Faulting package full name:
Faulting package-relative application ID:

key works on other computers.

  • Is there any output from sc-hsm-tool ?
  • What do you mean by “key works on other computers.” ?
  • What Windows version ?
  • Any other devices connected ?
  • Did it work before ?
  • What was the last thing you did with the device ?

| sc-hsm
November 1 |

  • | - |
  • Is there any output from sc-hsm-tool ?

sc-hsm-tool -v
No smart card readers found.

Failed to connect to card: Success

  • What do you mean by “key works on other computers.” ?

Tried a laptop with Windows 11 and also Linux under Raspberry PI.

  • What Windows version ?

Windows 10 Pro, 22H2. OS Build: 19045.6456
Device Name Z600-WorkStation
Processor Intel(R) Xeon(R) CPU X5650 @ 2.67GHz 2.66 GHz (2 processors)
Installed RAM 40.0 GB
Storage 466 GB SSD WD Blue SA510 2.5 500GB, 932 GB HDD TOSHIBA DT01ACA100
Graphics Card NVIDIA Quadro K2000 (2 GB)
Device ID – redacted –
Product ID – redacted –
System Type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

  • Any other devices connected ?

There is a USB YubiHSM, and mouse and bluetooth dongles.
Infeon Smart Card Reader works with this computer - but not in use at the time.
Also running SoftHSM

  • Did it work before ?

Not on this computer. No.

  • What was the last thing you did with the device ?

This was a brand new key. We did initialize it now on the raspberry where it works without issues.
Windows Event viewer on the problem machines shows the errors - shared earlier. This is the machine where it’s needed - it’s the development machine with applications needings the HSM.

How do you access this machine ? Are you working locally or remotely on the machine ?

Does the Nitrokey-HSM show up as Smartcard Reader in the device manager ?

Windows maps Smartcard Readers from the client to the remote machine, potentially hiding cards connected to the remote machine. If you connected remotely, then this might explain why the Nitrokey is not visible.

Hi

This is a development machine which I could access directly. But I am remotely logged in to this machine most of the time and definitely all the time we tested the NitroKey.

On the Device Manager it shows as an unknown device. But that is also the case on the laptop where it does work.

I will investigate using the NitroKey while remotely logged in. It’s actually a very smart observation.

regards
Vincent

Hi Again

Great news - connected directly to the machine - the Nitrokey springs into life - works fine.
I will try to put it through its paces - but yes the issue is remote login.

Great work with diagnostics.

regards
Vincent