Hello,

I would like to use the musclecard infrastructure with my SCM scr331 reader and card (supplied by my employer) to sign email under Linux and Mozilla. At some point it is supposed to prompt me for a PIN, but I am guess I have a ways to go.

My OS is Fedora Core 1, kept up-to-date. I tried the rpms mentioned on the list, but the pcscd kills my usb whenever it shuts down. Also the opensc.org mozilla signer doesn't seem to be able to access my SCM scr331, although the .so did load into mozilla. So back to sources.

So far I have downloaded and installed:

pcsc-lite-1.2.0.tar.gz
scr331ccidDriver-0.9.0-1.i386.rpm
muscleframework-1.1.3.tar.gz
-->(MCardPlugin,CFlexPlugin,PKCS11)
AuthICPlugin-0.9.0.tar.gz

(heck, i doubt i even need all this stuff, but i can't find a user-focused readme or howto anywhere, except opensc.org, and they don't support the scr331 from what i can tell)

Now I get:
# /usr/local/sbin/pcscd -f
pcscdaemon.c:251 main: pcscd set to foreground
pcscdaemon.c:427 main: warning: no reader.conf found
pcscdaemon.c:445 main: pcsc-lite daemon ready.
hotplug_libusb.c:344 Adding USB device: 001:002
readerfactory.c:1391 RFInitializeReader: Attempting startup of SCM SCR 331 CCID 0 0.
readerfactory.c:1133 RFBindFunctions: Loading IFD Handler 2.0


--and--
[pcscd]
winscard_msg.c:250 SHMProcessEvents: Common channel packet arrival
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:81 SCardEstablishContext: Establishing Context: 17011060
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:149 SCardConnect: Attempting Connect to SCM SCR 331 CCID 0 0
winscard.c:245 SCardConnect: Active Protocol: 1
winscard.c:252 SCardConnect: hCard Identity: 19f09
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:642 SCardDisconnect: Active Contexts: 1
winscard.c:703 SCardDisconnect: Reset complete.
winscard_msg.c:290 SHMProcessEvents: correctly processed client: 0
winscard.c:92 SCardReleaseContext: Releasing Context: 17011060
winscard.c:92 SCardReleaseContext: Releasing Context: 17011060
pcscdaemon.c:144 SVCServiceRun: Client 5 has disappeared.

--when i run--
[pcsc_demo]
PC/SC sample code
V 1.0 2003, Ludovic Rousseau <[EMAIL PROTECTED]>
0: SCM SCR 331 CCID 0 0
 Protocol: 1
SCardConnect: OK

Reader: SCM SCR 331 CCID 0 0 (length 21 bytes)
State: 0x34
Prot: 1
ATR (length 20 bytes): 01 23 45 67 89 10 11 12 13 14 15 16 17 18 19 20 21 22 23
SCardStatus: OK


SCardDisconnect: OK

Yes, I spoofed the ATR. Anyway, this seems okay so far, but how do I test the file /usr/local/lib/libpkcs11.so? According to the muscleframework-1.1.3 README, I am supposed to do something like:

1) Start mozilla
2) Click through Edit->Preferences->Privacy and Security->Certificates;
3) Manage Security Devices->Load
4) Type in [Muscle PKCS#11,/usr/local/lib/pkcs11.so]

I enter "ok" and "yes", and Mozilla replies with a dialog that says "Unable to add module".

Next I built a dummy program with an empty main() that links to /usr/local/lib libpkcs11.so and libmusclecard.so and it straces clean, no load problems.

Finally I took a chance that the README was wrong and I was supposed to specify the .so file as:

/usr/local/lib/libpkcs11.so

...but that load failed, too. The pcscd output says nothing when I run my empty main pgm or try to load the .so into mozilla.

Also changing the ATR (spAtrValue) in:
/usr/local/pcsc/services/authentIC.bundle/Contents/Info.plist
...did not help (as installed, it did not match the pscs_demo ATR value).

Any ideas on what to try next are appreciated.

Thanks,
John

_______________________________________________
Muscle mailing list
[EMAIL PROTECTED]
http://lists.drizzle.com/mailman/listinfo/muscle

Reply via email to