我有一个 HP Skylab Smartcard 键盘,据我所知,系统可以识别该设备本身。只是当我尝试测试登录时,它不会要求我输入 PIN。相反,它返回如下所示的错误:
$ uname -a
Linux cistron 5.15.0-41-generic #44~20.04.1-Ubuntu SMP Fri Jun 24 13:27:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ pkcs11-tool --list-slots
Available slots:
Slot 0 (0x0): Chicony HP Skylab USB Smartcard Keyboard [HP Skylab Smartcard...
token label : PIV_II
token manufacturer : piv_II
token model : PKCS#15 emulated
token flags : login required, PIN pad present, rng, token initialized, PIN initialized
hardware version : 0.0
firmware version : 0.0
serial num : 421381972a89c3f5
pin min/max : 4/8
$ pkcs11-tool --test --login
Using slot 0 with a present token (0x0)
error: PKCS11 function C_Login failed: rv = CKR_FUNCTION_CANCELED (0x50)
Aborting.
为了进行比较,我有一个工作正常的读卡器:
$ pkcs11-tool --list-slots
Available slots:
Slot 0 (0x0): SCM Microsystems Inc. SCR 3310 [CCID Interface] 00 00
token label : PIV_II
token manufacturer : piv_II
token model : PKCS#15 emulated
token flags : login required, rng, token initialized, PIN initialized
hardware version : 0.0
firmware version : 0.0
serial num : 421381972a89c3f5
pin min/max : 4/8
$ pkcs11-tool --test --login
Using slot 0 with a present token (0x0)
Logging in to "PIV_II".
Please enter User PIN:
<...>
这看起来像是某种配置问题,但我不知道是什么。