From: fuzzyhypothesis <fuz...@ya...> - 2013-03-26 16:50:13
|
Hi, I am willing to try and develop the driver for this card. I am usually on the other end of opensc/pkcs11. But I have need to use this card as well. >From the looks of this post http://ludovicrousseau.blogspot.com/2011/11/pcsc-api-spy-third-try.html I just need to fake out the existing driver and it captures APDU commands...after that I am at a bit of a loss as to what to do next. >From the looks of the libopensc source, I need to create a new card-*.c module and fill it in. Any good examples to reference here? Especially in relation to this card? Robert -- View this message in context: http://opensc.1086184.n5.nabble.com/SafeNet-Aladdin-new-eToken-PRO-Java-driver-tp8410p13796.html Sent from the Developer mailing list archive at Nabble.com. |
From: fuzzyhypothesis <fuz...@ya...> - 2013-03-27 12:27:20
|
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. |
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 |
From: fuzzyhypothesis <fuz...@ya...> - 2013-03-27 17:25:48
|
Andreas, Thank you for the response. It does support PKCS15 so I will have to remember to add that bit in too, thank you. I only need to beable to read from the card, so I plan to ignore the write parts for now. Hopefully I can turn this around and push it up to github in a month. Robert -- View this message in context: http://opensc.1086184.n5.nabble.com/SafeNet-Aladdin-new-eToken-PRO-Java-driver-tp8410p13799.html Sent from the Developer mailing list archive at Nabble.com. |