Yubico / Yubico.NET.SDK

A YubiKey SDK for .NET developers
Apache License 2.0
96 stars 48 forks source link

Cannot find YubiHSM 2 FIPS v2.2 with YubiKeyDevice.FindAll() #71

Closed jwfx closed 3 months ago

jwfx commented 3 months ago

OS: Win10 x64

After installing yubihsm-connector-windows-amd64.msi and yubihsm-shell-x64.msi interaction with the shell is possible.

Cannot get the device to show up with YubiKeyDevice.FindAll() while using <PackageReference Include="Yubico.YubiKey" Version="1.9.1" />.

What am I missing?

GregDomzalski commented 3 months ago

Hi @jwfx - this SDK only supports our YubiKey product line and not the YubiHSMs.

You would likely need to use our C library here: https://github.com/Yubico/yubihsm-shell

jwfx commented 3 months ago

Thanks for the quick response.

I suppose nothing is stopping me from using the C:\Program Files\Yubico\YubiHSM Shell\bin\libyubihsm.dll via DllImport?

GregDomzalski commented 3 months ago

Yup, I believe that should work.

jwfx commented 3 months ago

Alright, thanks for the pointers. 👍

Cheers