学习了一会GPG,发现他能使用智能卡
现在我有一个神州行的手机卡,一个工行的U盾
手机卡在Windows上插入的时候没有提示错误(以前试过IC电话卡、倒着插(没有芯片的一端),错误提示是一样的,在事件查看器里)
但是在Linux上SmartCard Reader 和 U盾 都没有驱动程序(usbview查看的时候是红字)
usbview里面的信息:
代码: 全选
O2Micro CCID SC Reader
Manufacturer: O2
Speed: 12Mb/s (full)
USB Version: 1.10
Device Class: 00(>ifc )
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 0b97
Product Id: 7772
Revision Number: 1.10
Config Number: 1
Number of Interfaces: 1
Attributes: e0
MaxPower Needed: 0mA
Interface Number: 0
Name: (none)
Alternate Number: 0
Class: 0b(scard)
Sub Class: 00
Protocol: 00
Number of Endpoints: 3
Endpoint Address: 03
Direction: out
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms
Endpoint Address: 82
Direction: in
Attribute: 2
Type: Bulk
Max Packet Size: 64
Interval: 0ms
Endpoint Address: 81
Direction: in
Attribute: 3
Type: Int.
Max Packet Size: 3
Interval: 255ms
代码: 全选
Giesecke & Devrient StarKey
Manufacturer: STMicroelectronic
Speed: 1.5Mb/s (low)
USB Version: 1.10
Device Class: ff(vend.)
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 8
Number of Configurations: 1
Vendor Id: 096e
Product Id: 0010
Revision Number: 0.01
Config Number: 1
Number of Interfaces: 1
Attributes: 80
MaxPower Needed: 30mA
Interface Number: 0
Name: (none)
Alternate Number: 0
Class: ff(vend.)
Sub Class: 00
Protocol: 00
Number of Endpoints: 0
这是命令行下的提示信息:
代码: 全选
proton@Proton:~$ gpg --card-status
gpg: pcsc_establish_context failed: no service (0x8010001d)
gpg: 读卡器不可用
gpg: OpenPGP 卡不可用:常规错误
proton@Proton:~$ su
口令:
root@Proton:/home/proton# gpg --card-status
gpg: selecting openpgp failed: unknown command
gpg: OpenPGP 卡不可用:常规错误
root@Proton:/home/proton#
代码: 全选
root@Proton:/home/proton# mount -t usbfs usbfs /proc/bus/usb
1 神州行的手机卡能不能做OpenPGP卡来用呢?
2 U盾呢? 如果可以,Class=ff 的问题怎么解决?
3 如果可以,应该怎么使用?(不是说GPG的使用方法,只要GPG能支持他们就可以)
3 为什么一般用户和root返回的错误信息不一样?
Thx in advance.