I can see your mcardplugin has this support but the environment variable MCARDPLUGIN_DEBUG has to be set, right? I don't know if I can use it to debug loading a pkcs#11 module in Mozilla for example...is there maybe some pkcs#11 utility that can be used with muscle? If not, I'll try what Martin suggested...
thanks, dejan > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Karsten Ohme > Sent: Wednesday, August 09, 2006 10:35 AM > To: MUSCLE > Subject: Re: [Muscle] PKCS#11 troubleshooting > > Gambin Dejan wrote: > > Thanks Karsten, maybe I would give it a try but it is > obvious I can't > > do anything if I don't have apdu debugging so I could see what is > > being sent to the card. Can you tell me how can I enable this on > > Windows (if this is possible)? > > APDU debugging is necessary? Well, my MCardPlugin has > debugging support and prints what it is doing. For the old > version you can enable APDU debugging if you insert some > printf or fprint in the send function. > > I don't know a general way to enable APDU debugging under Windows. > > Karsten > > > > dejan > > > > > >>-----Original Message----- > >>From: [EMAIL PROTECTED] > >>[mailto:[EMAIL PROTECTED] On Behalf Of > Karsten Ohme > >>Sent: Tuesday, August 08, 2006 3:04 PM > >>To: MUSCLE > >>Subject: Re: [Muscle] PKCS#11 troubleshooting > >> > >>Gambin Dejan wrote: > >> > >>>OK, then in shortly, if I want to use musclecard framework > >> > >>on my 2.2 > >> > >>>javacard (JCOP41, new JCOP31, etc) to be able for example to > >>>sign/encrypt email messages, do a web authentication or > >> > >>possibly sign > >> > >>>a OpenOffice document (if this is supported) I have to use ALL the > >>>stable muscle libraries (libmusclecard, pkcs11, mcardplucgin, > >>>mcardapplet) to get it to work? > >> > >>Yes. Or you must find the buggy things in the PKCS#11 module. > >>This can be some work. You must obey this, if you want to > update the > >>PKCS#11 module: > >> > >>http://web.inf.tu-dresden.de/~ko189283/MuscleCard/libmusclecar > >>dChanges.html > >> > >>Maybe it is not as much work as you may think (you can assume some > >>standard answers for a quick and dirty solution, e.g. > >>token can only RSA ... a complete PKCS#11 implementation > could be much > >>more pain.) > >> > >>Yes, the new things can do some things, which haven't been possible > >>before, e.g elliptic curves. It would be nice to see it all > together > >>working, but my current plan are to lift up libmusclecard to a good > >>middleware for many different tokens with better possibilities than > >>PKCS#11 and a Microsoft CSP, at the moment it is too specific. > >> > >>Karsten > >> > >> > >>>The thing is, I will hold a seminar on the next smartcard > >> > >>conference > >> > >>>in september, about the JavaCard (especially JCOP) > >>>development&integration, and I would very much like to present the > >>>MuscleCard project and to have a "working" example on using the > >>>musclecard on my JCOP card with "higher level" > applications. I hope > >>>that is possible, I wanted to try your new versions since > >> > >>it had some > >> > >>>new possibilities and I thought this was better choice for > >> > >>JavaCard 2.2 smartcards like JCOP41. > >> > >>>Besides, there is a MuscleCard applet support for OpenSC recently > >>>developed so I thought this could maybe be an interesting thing to > >>>present too... > >>> > >>>Anyway, thanks very much Karsten > >>> > >>>dejan > >>> > >>> > >>> > >>>>-----Original Message----- > >>>>From: [EMAIL PROTECTED] > >>>>[mailto:[EMAIL PROTECTED] On Behalf Of > >> > >>Karsten Ohme > >> > >>>>Sent: Tuesday, August 08, 2006 1:47 PM > >>>>To: MUSCLE > >>>>Subject: Re: [Muscle] PKCS#11 troubleshooting > >>>> > >>>>Gambin Dejan wrote: > >>>> > >>>> > >>>>>Hi, > >>>>> > >>>>>I am trying to use the newest PKCS#11 (developer version) > >>>> > >>>>module with > >>>> > >>>> > >>>>>the newest Muscle libraries. Since it doesn't work for me > >>>> > >>>>in Mozilla, > >>>> > >>>> > >>>>>I would like to troubleshoot it and I have a few questions: > >>>>> > >>>>>1. I can add the PKCS#11 module in Mozilla but I can't > do anything > >>>>>with it after that... during the PKCS#11 module loading in > >>>> > >>>>Mozilla, my > >>>> > >>>> > >>>>>PKCS11.log file has been filled with some error messages > >> > >>that could > >> > >>>>>point to the cause of the problem: > >>>> > >>>>The PKCS#11 modules work (?) only with the normal > libmusclecard and > >>>>MCradPlugin and CardEdgeApplet. From the error log I > >> > >>assume, that you > >> > >>>>are using maybe my versions. > >>>>There is no updated PKCS#11 module for this. > >>>> > >>>>Karsten > >>>> > >>>> > >>>> > >>>>>... > >>>>>08/08 13:20:26 Slot 1 changed > >>>>>08/08 13:20:26 +slot_DisconnectSlot : start > >>>>>08/08 13:20:26 -slot_DisconnectSlot : end RV(0x0) > >>>>>08/08 13:20:26 Attempting establish > >>>>>08/08 13:20:26 Establish connection > >>>>>08/08 13:20:26 Begin transaction: 1, rv=0 > >>>>>08/08 13:20:26 (..\src\p11x_msc.c 200): error: 0x9C0F "Invalid > >>>>>parameter" > >>>>>08/08 13:20:26 (..\src\p11x_slot.c 975): error: 0x9C0F "Invalid > >>>>>parameter" > >>>>>08/08 13:20:26 (..\src\p11x_slot.c 580): error: 0x9C0F "Invalid > >>>>>parameter" > >>>>>08/08 13:20:26 Error (..\src\p11x_slot.c 581): > >>>> > >>>>MSCGetCapabilities failed > >>>> > >>>> > >>>>>08/08 13:20:26 End transaction: 1, rv=0 > >>>>>08/08 13:20:26 (..\src\p11_general.c 117): error: 0x32 > >>>>>"CKR_DEVICE_REMOVED" > >>>>>08/08 13:20:26 -C_Initialize : end RV(0x0) ... > >>>>> > >>>>>I don't know if those errors are important anyway (I have > >> > >>read that > >> > >>>>>CKR_DEVICE_REMOVED error is normal the first time it is > >> > >>looking for > >> > >>>>>the reader?). But after that it returns 0 mechanisms, no > supported > >>>>>functions listed etc... > >>>>> > >>>>>If anyone has a suggestion on where to look or where to start > >>>>>troubleshooting, I would appreciate it very much. I even > >> > >>don't know > >> > >>>>>how to enable apdu logging (maybe this could help me > diagnose the > >>>>>problem)...I am working on Windows... > >>>>> > >>>>>thanks very much > >>>>> > >>>>>dejan > >>>>> > >>>>>_______________________________________________ > >>>>>Muscle mailing list > >>>>>Muscle@lists.musclecard.com > >>>>>http://lists.drizzle.com/mailman/listinfo/muscle > >>>> > >>>>_______________________________________________ > >>>>Muscle mailing list > >>>>Muscle@lists.musclecard.com > >>>>http://lists.drizzle.com/mailman/listinfo/muscle > >>>> > >>> > >>> > >>>_______________________________________________ > >>>Muscle mailing list > >>>Muscle@lists.musclecard.com > >>>http://lists.drizzle.com/mailman/listinfo/muscle > >> > >>_______________________________________________ > >>Muscle mailing list > >>Muscle@lists.musclecard.com > >>http://lists.drizzle.com/mailman/listinfo/muscle > >> > > > > > > _______________________________________________ > > Muscle mailing list > > Muscle@lists.musclecard.com > > http://lists.drizzle.com/mailman/listinfo/muscle > > _______________________________________________ > Muscle mailing list > Muscle@lists.musclecard.com > http://lists.drizzle.com/mailman/listinfo/muscle > _______________________________________________ Muscle mailing list Muscle@lists.musclecard.com http://lists.drizzle.com/mailman/listinfo/muscle