From: Robert <fuz...@ya...> - 2018-03-08 02:21:40
|
Doug, Thank you for the response, was starting to get lonely. :) Anyways it does have certificate based authentication tokens (which I believe is pkcs15, again I am pkcs11 and up person...I haven't had to go this deep into smartcards before and have been in ignorant bliss for years), it contains several user certificates and a bunch of other "stuff". The intro on the wiki is more for a basic pkcs15 card. I started looking at the PIV card implementation and went down a dangerous rabbit hole of setting some very large object based structures. Since I can't find any comments or doc's on those structures. I am not sure how to go about using them or what is required, etc etc. I hate to ask, should I be looking at a different route over OpenSC? Once I got past anything that didn't have a C_* function with it I started to worry. Is there any books on this bit that would be helpful so I don't harass folks on the list? FH On Wednesday, March 7, 2018, 2:36:17 PM EST, Robert via Opensc-devel <ope...@li...> wrote: Stillhaven't gotten a good answer yet. But figured I would sharewhat I am starting to understand about OpenSC as I look at and pushup some new questions Anda different question, instead of documentation on adding a new card,is the a book perhaps that would be worth reading? I haveworked on the application side of PKCS15 but never had to deal withthis side. Anywaysmy understanding to add in a new card type is to create apkcs15-mycardname.c and corresponding card-mycardname.c fileand basically fill in functionality for the following bits below. Italso looks like I can create a test tool based on opensc-tool(noticed several other cards have done the same thing just renamed it). Forcard-*.c addin an the following function: staticstruct sc_card_driver * sc_get_driver() – Object like Creference for functions to use on the card. From here we add incustom functions for each item in the sc_card_driver structure. ISthere anything that gives definitions as to what each function isexpected to do? Forpkcs15-*.c Addin the following function (also add in a hook to either opensc.confor pkcs15-syn.h – This bit is pretty confusing to me. It “lookslike” this function is used as an initialization for a series ofobjects. But I can't find documentation or figure out how thoseobjects play with the rest of OpenSC. Doesthis sound about right? Is there any guides worth looking at orsomething that is written about all the objects that you assignfunctions to in these two modules? FuzzyH On Wednesday, January 17, 2018, 8:39:04 AM EST, Robert <fuz...@ya...> wrote: All, Just wanted to knowif my assumption to add in a new card to OpenSC is correct. I have been alongtime user of pcsc-lite but never had to dive into it myself. Well I got asked if I could look into implementing a card if I wasgiven the ADPU spec for the card. If I am readingeverything correctly from the pages below I just need to add insupport to OpenSC and make sure I put in the proper ATR's for thecards. Is that correct? Oram I missing an important part where I need to add in something tothe pkcs11 layer as well. Also what about some of the debug toolslike opensc-tool, would they need to be modified? Or do they pullwhat they need from the OpenSC card driver? Robert https://github.com/OpenSC/OpenSC/wiki/Quick-Start-with-OpenSC https://github.com/OpenSC/OpenSC/wiki/Adding-a-new-card-driver https://github.com/OpenSC/OpenSC/wiki/New-card-driver:-EnterSafe-card-example ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________ Opensc-devel mailing list Ope...@li... https://lists.sourceforge.net/lists/listinfo/opensc-devel |