Il 23/02/2011 20:04, NdK ha scritto: Extracted from pcscd log (just masked PIN): -8<-- openct/proto-t1.c:350:t1_transceive() SW: 90 00 winscard_msg_srv.c:317:SHMProcessEventsContext() command TRANSMIT received by client 11 winscard.c:1651:SCardTransmit() Send Protocol: T=1 APDU: 00 2A 9E 9A 23 30 21 30 09 06 05 2B 0E 03 02 1A 05 00 04 14 5C 29 A6 37 70 CA 00 32 95 C7 64 4D 94 89 CA 5A 9D 46 25 F1 00 ifdhandler.c:1170:IFDHTransmitToICC() usb:04e6/5115:libhal:/org/freedesktop/Hal/devices/usb_device_4e6_5115_504012DD_if0 (lun: 0) commands.c:1990:CmdXfrBlockTPDU_T1() T=1: 41 and 260 bytes openct/proto-t1.c:570:t1_build() more bit: 0 sending: 00 40 29 00 2A 9E 9A 23 30 21 30 09 06 05 2B 0E 03 02 1A 05 00 04 14 5C 29 A6 37 70 CA 00 32 95 C7 64 4D 94 89 CA 5A 9D 46 25 F1 00 F1 -> 000000 6F 2D 00 00 00 00 66 00 00 00 00 40 29 00 2A 9E 9A 23 30 21 30 09 06 05 2B 0E 03 02 1A 05 00 04 14 5C 29 A6 37 70 CA 00 32 95 C7 64 4D 94 89 CA 5A 9D 46 25 F1 00 F1 <- 000000 80 06 00 00 00 00 66 00 00 00 00 40 02 69 82 A9 received: 00 40 02 69 82 A9 openct/proto-t1.c:350:t1_transceive() SW: 69 82 winscard_msg_srv.c:317:SHMProcessEventsContext() command TRANSMIT received by client 11 winscard.c:1651:SCardTransmit() Send Protocol: T=1 APDU: 00 20 00 02 08 3x 3x 3x 3x 3x 3x FF FF ifdhandler.c:1170:IFDHTransmitToICC() usb:04e6/5115:libhal:/org/freedesktop/Hal/devices/usb_device_4e6_5115_504012DD_if0 (lun: 0) commands.c:1990:CmdXfrBlockTPDU_T1() T=1: 13 and 258 bytes openct/proto-t1.c:570:t1_build() more bit: 0 sending: 00 00 0D 00 20 00 02 08 3x 3x 3x 3x 3x 3x FF FF 27 -> 000000 6F 11 00 00 00 00 67 00 00 00 00 00 0D 00 20 00 02 08 3x 3x 3x 3x 3x 3x FF FF 27 <- 000000 80 06 00 00 00 00 67 00 00 00 00 00 02 90 00 92 received: 00 00 02 90 00 92 openct/proto-t1.c:350:t1_transceive() SW: 90 00 winscard_msg_srv.c:317:SHMProcessEventsContext() command TRANSMIT received by client 11 winscard.c:1651:SCardTransmit() Send Protocol: T=1 APDU: 00 2A 9E 9A 23 30 21 30 09 06 05 2B 0E 03 02 1A 05 00 04 14 5C 29 A6 37 70 CA 00 32 95 C7 64 4D 94 89 CA 5A 9D 46 25 F1 00 ifdhandler.c:1170:IFDHTransmitToICC() usb:04e6/5115:libhal:/org/freedesktop/Hal/devices/usb_device_4e6_5115_504012DD_if0 (lun: 0) commands.c:1990:CmdXfrBlockTPDU_T1() T=1: 41 and 260 bytes openct/proto-t1.c:570:t1_build() more bit: 0 sending: 00 40 29 00 2A 9E 9A 23 30 21 30 09 06 05 2B 0E 03 02 1A 05 00 04 14 5C 29 A6 37 70 CA 00 32 95 C7 64 4D 94 89 CA 5A 9D 46 25 F1 00 F1 -> 000000 6F 2D 00 00 00 00 68 00 00 00 00 40 29 00 2A 9E 9A 23 30 21 30 09 06 05 2B 0E 03 02 1A 05 00 04 14 5C 29 A6 37 70 CA 00 32 95 C7 64 4D 94 89 CA 5A 9D 46 25 F1 00 F1 <- 000000 80 06 00 00 00 00 68 00 00 00 00 40 02 69 82 A9 received: 00 40 02 69 82 A9 openct/proto-t1.c:350:t1_transceive() SW: 69 82 winscard_msg_srv.c:317:SHMProcessEventsContext() command END_TRANSACTION received by client 11 winscard.c:1212:SCardEndTransaction() Status: 0x00000000 winscard_msg_srv.c:306:SHMProcessEventsContext() Client has disappeared: 11 winscard_svc.c:146:ContextThread() Client die: 11 -8<--
IIUC it tries the sign, it fails because private key needs PIN, sends PIN (result OK: 90 00), retries the sign and fails again. BTW it's an awful authentication since the PIN is sent everytime in cleartext to the card, but that's another story... BYtE, Diego. _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel