How to make java program read from CCID Card on Mac OS X?
I have a java code that run in Windows and does this:
String config = "name = SafeSign \n"+
"library = c:\\windows\\system32\\aetpkss1.dll";
Security.addProvider(new sun.security.pkcs11.SunPKCS11(new ByteArrayInputStream(config.getBytes())));
I want to transform this code so it will run on Mac OS X. Basically, this code is part of something that will read a certificate from a CCID Card that is connected to my mac via usb.
I've read that mac uses pcsclite lib in this driver, but I don't know how to locate which file I must reference on the config开发者_如何学编程 variable. Here is also the information about the Card reader I'm using:
CCID USB Reader:
Product ID: 0x90cc
Vendor ID: 0x072f
Version: 1.00
Speed: Up to 12 Mb/sec
Manufacturer: ACS
Location ID: 0x06200000
Current Available (mA): 500
Current Required (mA): 100
Any different ideas or pointers about how I would be able to do what I want would also be appreciated.
I'm not a Mac user, but this blog post seems to point to /usr/local/lib/libaetpkss.dylib
?
You may also want to look at the OpenSC project which possibly supports you AET card.
精彩评论