我有一台带智能卡读卡器的笔记本电脑(戴尔)。我正尝试让它使用 Linux 进行双因素身份验证。硬件如下:
$ opensc-tool -n
Using reader with a card: Broadcom 5880 [Broadcom USH] (0123456789ABCD) 00 00
Cryptoflex 32K e-gate v4
似乎可以很好地读取卡片,但按照opensc 方向我可以拿到钥匙,但是它的 ID 很奇怪。
$ pkcs15-tool -k
Using reader with a card: Broadcom 5880 [Broadcom USH] (0123456789ABCD) 00 00
Private RSA Key [Private Key]
Object Flags : [0x3], private, modifiable
Usage : [0x4], sign
Access Flags : [0x1D], sensitive, alwaysSensitive, neverExtract, local
ModLength : 2048
Key ref : 0 (0x0)
Native : yes
Path : 3f0050154b0130000012
Auth ID : 01
ID : 2d4dce07ca7a666723df7cff307abf7825a31be1
GUID : {2d4dce07-ca7a-6667-23df-7cff307abf78}
然后,尝试使用它总是会产生错误。
12 $ pkcs15-tool -r 45
Using reader with a card: Broadcom 5880 [Broadcom USH] (0123456789ABCD) 00 00
Certificate with ID '45' not found.
13 $ pkcs15-tool -r 2d4dce07ca7a666723df7cff307abf7825a31be1
Using reader with a card: Broadcom 5880 [Broadcom USH] (0123456789ABCD) 00 00
Certificate with ID '2d4dce07ca7a666723df7cff307abf7825a31be1' not found.
我有点被困在这里了。有人知道该怎么解决吗?
答案1
你有一个密匙对,但不是证书(-r 将读取证书)您可以阅读公钥和
pkcs15-tool --read-public-key 2d4dce07ca7a666723df7cff307abf7825a31be1