Common Access Card (CAC) with PCSC reader...Help!

Hey all

I'm working on a DoD contracted tool for logging in using a CAC (Common Access Card). We are using an SCR331 reader, which is PCSC compatible. All I really need is to be able check a pin number with the card and get information off of it. Does anyone have suggestions?

The dll we currently have doesn't really work. If we enter the correct pin everything is hunky dory, but as soon as we enter an incorrect pin we get an internal error (no exceptions thrown) and everything goes bye bye.

Please help!

I also have tried connecting using the following lines with javacard framework:

cad=CadDevice.getCadClientInstance(CadDevice.PROTOCOL_PCSC, null, null);

cad.powerUp();

As soon as I called cad.powerUp() I get this error:

java.io.IOException: Exception while getting ATR

at com.sun.javacard.apduio.CadPCSCClient.powerUp(Unknown Source)

If anyone can provide some help that would be awesome. Thanks

[973 byte] By [CDM_Ballera] at [2007-11-27 9:27:45]
# 1

sounds like a dll is screwed up especially if u are using the Java/PCSC Bridge. have you tried re-installing the middleware ? or are u using a homegrown middleware ? Since you are using the Java I'd recommend you move to Java 6. It has supported off-card APIs for PCSC CAD

By the way, what card are you using ? Test cards or real ? you could have blocked the card and require a visit to a CPR desk !

Joseph.Smitha at 2007-7-12 22:30:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2
never mind..with a valid pin entry, the invalid tries counter is reset.. no CPR visit required !
Joseph.Smitha at 2007-7-12 22:30:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 3

Hey thanks for the reply.

I'm using the dll that came with a CD. We've tried to contact the people whose names are listed with the dlls but they are very flaky and avoiding helping us at all.

Im pretty sure we can't use Java 6...we are using AspectJ in other parts of the product and it is bound to Java 5. The cards are test...I've tried multiple that aren't blocked and I get the same problem. Do you think I could possibly use a different dll? If so...do you know where to find them?

There is most definitely a dll problem.

CDM_Ballera at 2007-7-12 22:30:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 4
this has more questions that can fit here ...contact me offline and we'll discuss
Joseph.Smitha at 2007-7-12 22:30:33 > top of Java-index,Java Mobility Forums,Consumer and Commerce...