I just received the HSM2 and try to follow the instrctions at nitrokey.com/start
I run opensc 0.19 built a few days ago (works well with the Nitrokey start).
$ pkcs11-tool --module /usr/lib/opensc-pkcs11.so --init-token --init-pin --so-pin=3537363231383830 --new-pin=648219 --label="test" --pin=648219Using slot 0 with a present token (0x0)
error: PKCS11 function C_InitToken failed: rv = CKR_FUNCTION_NOT_SUPPORTED (0x54)
Aborting.
I tried a couple other commands like changing PIN, but that didn’t work either :
$ pkcs11-tool --login --pin 648219 --change-pin --new-pin 123456 --module /usr/lib/opensc-pkcs11.so
Using slot 0 with a present token (0x0)
error: PKCS11 function C_Login failed: rv = CKR_GENERAL_ERROR (0x5)
Aborting.
Some more error messages :
$ opensc-explorer
OpenSC Explorer version 0.20.0
Using reader with a card: Nitrokey Nitrokey HSM (DENK02001740000 ) 00 00
OpenSC [3F00]> ls
FileID Type Size
2F02 unable to select file, Incorrect parameters in APDU
CC00 unable to select file, Incorrect parameters in APDU
and this :
$ sc-hsm-tool --initialize --so-pin 3537363231383830 --pin 648219
Using reader with a card: Nitrokey Nitrokey HSM (DENK02001740000 ) 00 00
Failed to connect to card: Card is invalid or cannot be handled