Hello Dr. Ludovic,

On 28/4/09 17:27, Ludovic Rousseau wrote:
2009/4/28 João Poupino<joao.poup...@data.identity.pt>:
On 25/4/09 10:40, João Poupino wrote:
On 22/4/09 18:15, Martin Paljak wrote:
Please provide logs of pcscd and OpenSC. This should not happen.
I tried to investigate the problem a little a little further. Here's what
I've found:

1. On Ubuntu Linux 8.10, with pcsc-lite 1.5.2 and ccid driver 1.3.10 the
problem persists (previously, I was using MacOS X 10.5.6, with pcsc-lite
1.4.0 and ccid driver 1.3.10);

2. The problem only occurs with some operations. For example, if I run a
simple command like pkcs15-tool -k (read keys), the card never "hangs"
regardless of the number of times I run it. On the other hand, if I try a
pkcs15-tool -D, the first run is ok, on the second time the card just hangs.

3. After raising the debug level to 7 in the ccid driver (in Info.plist). I
can see some strange messages coming from the reader on the second try (00
82 00 82), the messages keep repeating until I forcibly kill (kill -KILL)
the pcsc-lite daemon.

For example, on the second run, when the cards hangs:


It looks like your Aladdin token is bogus.

It is sending a RDR_to_PC_DataBlock CCID frame:
<- 000000 80 09 00 00 00 00 B6 00 00 00 00 E1 01 31 D1 00 92 00 92
containing 9 bytes of data: 00 E1 01 31 D1 00 92 00 92
But the ISO 7816-3 T=1 block inside is just: 00 E1 01 31 D1. The 0x01
is the size of data. The data is 0x31

I have no idea what the "00 92 00 92" extra bytes are used for. And
after that T=1 block the token/card and the driver can't synchronise
again.

Do you also have the problem on Windows with Windows CCID driver?
I've used Alon's build [1] to cross compile OpenSC 0.11.8-svn for Windows (r3686) and the card seems to be working correctly. I ran some tests on Windows Vista SP1 (64 bit), including executing pkcs15-tool -D five times in a row and using putty with the smart card.
Do you also have the problem using the CCID driver from OpenCT?
Unfortunately, I couldn't get OpenCT (version 0.6.15 on Ubuntu Linux 9.04) to work with the card. The command "openct-tool atr" works fine, but opensc-tool -a fails.
Bye

Another thing that I've noticed, but don't know if its relevant or not: in either Linux or MacOS X, after "pkcs15-tool -D" terminates, if the pcsc-lite daemon is restarted, the card will function correctly.

For example:

$ pkcs15-tool -D
[works OK]
$ /etc/init.d/pcscd restart
$ pkcs15-tool -D
[works OK]

And so on, and so on...

Thank you for your support!

Regards,
Joao

[1] http://www.opensc-project.org/build

--
João Poupino - joao.poup...@data.identity.pt
Data Identity - IT Services
Taguspark, Núcleo Central, nº 208
2744-005 Porto Salvo
Portugal

_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to