I have a YubiHSM2 HSM device and want to access it via PKCS11. I have installed the YubiHSM2 drivers as well as Libp11 and OpenSC tools.
However, when I try to connect and generate a key via:
pkcs11-tool --module 'C:\Users\myUser\yubihsm2-sdk\bin\yubihsm_pkcs11.dll --login --pin 0001password \
--keypairgen --key-type rsa:2048 --label "my_key" --usage-sign
I receive:
error: Failed to laod pkcs11 module
Aborting.
I am thinking maybe I am adressing the dll file wrong? I am trying to implement this on Windows, I had it working on Unix System where I had to address a xxx.so file.
Does anyone have an idea or similar experience with a HSM module? Thanks for your help! Best regards LikeAKemper