From: Andreas S. (ML) <and...@ca...> - 2013-03-27 13:32:04
|
Hi Robert, we've recently added a driver for our SmartCard-HSM [1], which happens to be a JavaCard applet. The question is not so much about whether your card is a JavaCard or not, but if your card/applet supports a PKCS#15 structure or requires an emulation layer. PKCS#15 is great on generic file system cards where you use a bunch of files to describe what keys are located where, what they do and how they can be used. The emulation layer makes sense, if the token/card already has the keys in place or implements basic management functions to enumerate files and keys. The questions is also if you want to provide read-only or read/write support. For the former you need just the card-* and pkcs15-* module like in libopensc, for the later you will also need to provide a pkcs15-* module in pkcs15init. Other than that: Just pick an existing driver that is close to your model and start hacking. Andreas [2] https://github.com/OpenSC/OpenSC/wiki/SmartCardHSM Am 27.03.2013 13:27, schrieb fuzzyhypothesis: > All, > > Gee you would think I was posting on the NetSNMP mailing list with all the > responses. > > Anyways, I thought I would post up what most experts here already know, but > might be of help to folks trying to build a driver for a card for the first > time. > > Oh and I have a question. > > I found these nice pages on how to add in a new driver > https://www.opensc-project.org/opensc/wiki/DeveloperInformation/NewCardDriver > https://www.opensc-project.org/opensc/wiki/DeveloperInformation/NewCardDriver/EnterSafeExample > > Which looks like you create a object for the new driver, and add in several > key function definitions. and put in the hooks in the appropriate headers > (ctx.h for example). > > My question is: > It doesn't look like there is any support for Java card applets in opensc. > Is this correct? > > Robert > > > > > -- > View this message in context: http://opensc.1086184.n5.nabble.com/SafeNet-Aladdin-new-eToken-PRO-Java-driver-tp8410p13797.html > Sent from the Developer mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Own the Future-Intel® Level Up Game Demo Contest 2013 > Rise to greatness in Intel's independent game demo contest. > Compete for recognition, cash, and the chance to get your game > on Steam. $5K grand prize plus 10 genre and skill prizes. > Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d > _______________________________________________ > Opensc-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/opensc-devel -- --------- CardContact Software & System Consulting |.##> <##.| Andreas Schwier |# #| Schülerweg 38 |# #| 32429 Minden, Germany |'##> <##'| Phone +49 571 56149 --------- http://www.cardcontact.de http://www.tscons.de http://www.openscdp.org |