Closed lamaral closed 8 years ago
2015-10-25 12:28:15.630 [pkcs15-init] reader-pcsc.c:184:pcsc_internal_transmit: called
2015-10-25 12:28:15.634 OMNIKEY CardMan 3x21 0:SCardTransmit/Control failed: 0x80100068
Sounds like it takes 0.004s to fail. To me, it sounds more or less like an error from a lower layer.
We can try a few things: 1) Please make sure to use the latest version of pcsc-lite 2) Try a different card and/or reader if possible 3) Please start pcscd in foreground, enable debug output and post the results. See: http://ludovicrousseau.blogspot.de/2011/07/pcscd-debug-output.html
This issue was inactive for some time now. If you still have this issue, please re-open. Thanks.
I found what was the problem. I have an Omnikey 3121 reader. I installed the drivers from Omnikey. After I removed the drivers, everything worked perfectly.
I think this is maybe still a reader issue:
Incoming APDU data [ 254 bytes] =====================================
A8 0A 30 08 04 06 3F 00 50 15 44 01 00 00 00 00 ..0...?.P.D.....
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 ..............
======================================================================
The SW1SW2 is not shown here. The card/reader should send 256 bytes, containing the SW1SW2.
pcscd has an option to log apdus (-a). Can you check wether the SW1SW2 can be seen here?
On 01/30/2016 07:30 PM, Luiz Fernando Ribeiro Amaral wrote:
Hello Philip,
I managed to initialize the card successfully. What happens now is that any operation that I try I get an |PKCS#15 binding failed: Unsupported card|.
I'm attaching the pkcs15-init debug output and the pcscd debug output. pcscd.txt https://github.com/philipWendland/IsoApplet/files/110930/pcscd.txt pkcs15-init.txt https://github.com/philipWendland/IsoApplet/files/110931/pkcs15-init.txt
— Reply to this email directly or view it on GitHub https://github.com/philipWendland/IsoApplet/issues/8#issuecomment-177268179.
Philip,
It turned out was just the reader driver. After I removed the HID Omnikey drivers it worked fine.
OK, thanks. I did not see your latest response in the email conversation, sorry.
I installed the isoApplet on a J3A081 card using GlobalPlatform:
gp -install IsoApplet.cap -default
Then when initializing the card with
pkcs15-init --create-pkcs15
I get the following error: "Failed to create PKCS #15 meta structure: Transmit failed"I'm sending the debug too.