At the first use of an HSM device after opening the sealed package I received
PKCS11 function C_Login failed: rv = CKR_GENERAL_ERROR (0x5) when trying to login with
pkcs11-tool --login --pin=648219 --test.
The hardware level is:
Slot 0 (0x0): Nitrokey Nitrokey HSM (010000000000000000000000) 00 00
token label : UserPIN (SmartCard-HSM)
token manufacturer : www.CardContact.de
token model : PKCS#15 emulated
token flags : login required, rng, token initialized, PIN initialized
hardware version : 24.13
firmware version : 2.3
serial num : DENK0100630
pin min/max : 6/15
I tried this on Centos 7.6.1810 both with stock OpenSC (0.16) and with 0.19 from tar ball. (I tried OSX with OpenSC from brew and github as well, but
pkcs11-tool [--module /usr/local/lib/opensc-pkcs11.so] --show-info hung).
I tried this with 2 different HSM devices with the same result.
Any idea how to get past this issue?