Hi, I am quite new to the APDU and OpenSC world.
I have a G&D Mobile microSD smart card that has been initialized using SafeSign 3.0.20. SafeSign/AET says that they are PKCS#15 compliant. When I try to read certificates from this card using OpenSC, I am able to see a proper listing of the certificates on the card. But when I try to list pins (or write certificates) - I run into problems. I am attaching a log for the list- pins option. It seems to be able to read the PIN and PUK fields but gets stuck in challenge- response I will be grateful if any of you can guide how to go about solving this issue. Regards, Narasayya command: pkcs15-tool.exe --list-pins -vvvvvvvvvvvvvvvv [pkcs15-tool] sc.c:196:sc_detect_card_presence: called [pkcs15-tool] reader-pcsc.c:266:refresh_slot_attributes: called [pkcs15-tool] sc.c:201:sc_detect_card_presence: returning with: 1 [pkcs15-tool] sc.c:196:sc_detect_card_presence: called [pkcs15-tool] reader-pcsc.c:266:refresh_slot_attributes: called [pkcs15-tool] sc.c:201:sc_detect_card_presence: returning with: 1 Connecting to card in reader Mobile Security Card 0001 0... [pkcs15-tool] card.c:111:sc_connect_card: called [pkcs15-tool] reader-pcsc.c:266:refresh_slot_attributes: called After connect protocol = 2 Requesting reader features ... SCardControl failed 00000001 matching configured ATRs matching built-in ATRs trying driver: cardos ATR : 3b:80:80:01:01 ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c ignored - wrong length ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47 ignored - wrong length ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3 ignored - wrong length ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28 ignored - wrong length ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4 ignored - wrong length ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a ignored - wrong length trying driver: cardos ATR : 3b:80:80:01:01 ATR try : 3b:e2:00:ff:c1:10:31:fe:55:c8:02:9c ignored - wrong length ATR try : 3b:e9:00:ff:c1:10:31:fe:55:00:64:05:00:c8:02:31:80:00:47 ignored - wrong length ATR try : 3b:fb:98:00:ff:c1:10:31:fe:55:00:64:05:20:47:03:31:80:00:90:00:f3 ignored - wrong length ATR try : 3b:fc:98:00:ff:c1:10:31:fe:55:c8:03:49:6e:66:6f:63:61:6d:65:72:65:28 ignored - wrong length ATR try : 3b:f4:98:00:ff:c1:10:31:fe:55:4d:34:63:76:b4 ignored - wrong length ATR try : 3b:f2:18:00:ff:c1:0a:31:fe:55:c8:06:8a ignored - wrong length trying driver: flex ATR : 3b:80:80:01:01 ATR try : 3b:95:15:40:20:68:01:02:00:00 ignored - wrong length ATR try : 3B:95:15:40:FF:68:01:02:02:01 ignored - wrong length ATR try : 3B:95:15:40:FF:68:01:02:02:04 ignored - wrong length ATR try : 3B:85:40:20:68:01:01:05:01 ignored - wrong length ATR try : 3B:95:94:40:FF:63:01:01:02:01 ignored - wrong length ATR try : 3B:95:15:40:FF:63:01:01:02:01 ignored - wrong length ATR try : 3B:95:18:40:FF:64:02:01:01:02 ignored - wrong length ATR try : 3B:95:18:40:FF:62:01:01:00:00 ignored - wrong length ATR try : 3B:95:18:40:FF:62:01:02:01:04 ignored - wrong length ATR try : 3B:95:18:40:FF:62:04:01:01:05 ignored - wrong length ATR try : 3b:95:15:40:ff:68:01:02:45:47 ignored - wrong length ATR try : 3B:E2:00:00:40:20:49:06 ignored - wrong length ATR try : 3B:E2:00:00:40:20:49:05 ignored - wrong length ATR try : 3B:E2:00:00:40:20:49:07 ignored - wrong length ATR try : 3B:85:40:20:68:01:01:03:05 ignored - wrong length ATR try : 3B:02:14:50 ignored - wrong length ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0 ignored - wrong length ATR try : 3B:32:15:00:06:80 ignored - wrong length ATR try : 3B:32:15:00:06:95 ignored - wrong length ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0 ignored - wrong length ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0 ignored - wrong length ATR try : 3B:16:94:81:10:06:01:81:3F ignored - wrong length ATR try : 3B:16:94:81:10:06:01:81:2F ignored - wrong length trying driver: cyberflex ATR : 3b:80:80:01:01 ATR try : 3b:95:15:40:20:68:01:02:00:00 ignored - wrong length ATR try : 3B:95:15:40:FF:68:01:02:02:01 ignored - wrong length ATR try : 3B:95:15:40:FF:68:01:02:02:04 ignored - wrong length ATR try : 3B:85:40:20:68:01:01:05:01 ignored - wrong length ATR try : 3B:95:94:40:FF:63:01:01:02:01 ignored - wrong length ATR try : 3B:95:15:40:FF:63:01:01:02:01 ignored - wrong length ATR try : 3B:95:18:40:FF:64:02:01:01:02 ignored - wrong length ATR try : 3B:95:18:40:FF:62:01:01:00:00 ignored - wrong length ATR try : 3B:95:18:40:FF:62:01:02:01:04 ignored - wrong length ATR try : 3B:95:18:40:FF:62:04:01:01:05 ignored - wrong length ATR try : 3b:95:15:40:ff:68:01:02:45:47 ignored - wrong length ATR try : 3B:E2:00:00:40:20:49:06 ignored - wrong length ATR try : 3B:E2:00:00:40:20:49:05 ignored - wrong length ATR try : 3B:E2:00:00:40:20:49:07 ignored - wrong length ATR try : 3B:85:40:20:68:01:01:03:05 ignored - wrong length ATR try : 3B:02:14:50 ignored - wrong length ATR try : 3B:19:14:55:90:01:02:01:00:05:04:B0 ignored - wrong length ATR try : 3B:32:15:00:06:80 ignored - wrong length ATR try : 3B:32:15:00:06:95 ignored - wrong length ATR try : 3B:19:14:59:01:01:0F:01:00:05:08:B0 ignored - wrong length ATR try : 3B:19:14:55:90:01:01:01:00:05:08:B0 ignored - wrong length ATR try : 3B:16:94:81:10:06:01:81:3F ignored - wrong length ATR try : 3B:16:94:81:10:06:01:81:2F ignored - wrong length trying driver: gemsafeV1 [pkcs15-tool] card-gemsafeV1.c:120:gemsafe_match_card: called trying driver: miocos ATR : 3b:80:80:01:01 ATR try : 3B:9D:94:40:23:00:68:10:11:4D:69:6F:43:4F:53:00:90:00 ignored - wrong length ATR try : 3B:9D:94:40:23:00:68:20:01:4D:69:6F:43:4F:53:00:90:00 ignored - wrong length trying driver: mcrd ATR : 3b:80:80:01:01 ATR try : 3B:FF:94:00:FF:80:B1:FE:45:1F:03:00:68:D2:76:00:00:28:FF:05:1E:31:80:00:90:00:23 ignored - wrong length ATR try : 3b:6f:00:ff:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00 ignored - wrong length ATR try : 3b:ff:11:00:ff:80:b1:fe:45:1f:03:00:68:d2:76:00:00:28:ff:05:1e:31:80:00:90:00:a6 ignored - wrong length trying driver: asepcos ATR : 3b:80:80:01:01 ATR try : 3b:d6:18:00:81:b1:80:7d:1f:03:80:51:00:61:10:30:8f ignored - wrong length ATR try : 3b:d6:18:00:81:b1:fe:7d:1f:03:41:53:45:37:35:35:01 ignored - wrong length trying driver: setcos ATR : 3b:80:80:01:01 ATR try : 3B:1F:11:00:67:80:42:46:49:53:45:10:52:66:FF:81:90:00 ignored - wrong length ATR try : 3B:9F:94:40:1E:00:67:16:43:46:49:53:45:10:52:66:FF:81:90:00 ignored - wrong length ATR try : 3b:9f:94:40:1e:00:67:00:43:46:49:53:45:10:52:66:ff:81:90:00 ignored - wrong length ATR try : 3b:6b:00:ff:80:62:00:a2:56:46:69:6e:45:49:44 ignored - wrong length ATR try : 3b:64:00:ff:80:62:00:a2 ignored - wrong length ATR try : 3b:7b:00:00:00:80:62:00:51:56:46:69:6e:45:49:44 ignored - wrong length ATR try : 3b:64:00:00:80:62:00:51 ignored - wrong length ATR try : 3b:6e:00:00:00:62:00:00:57:41:56:41:4e:54:10:81:90:00 ignored - wrong length ATR try : 3b:7b:94:00:00:80:62:11:51:56:46:69:6e:45:49:44 ignored - wrong length ATR try : 3b:9f:94:80:1f:c3:00:68:10:44:05:01:46:49:53:45:31:c8:07:90:00:18 ignored - wrong length ATR try : 3b:9f:94:80:1f:c3:00:68:11:44:05:01:46:49:53:45:31:c8:00:00:00:00 ignored - wrong length [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called [pkcs15-tool] reader-pcsc.c:649:pcsc_lock: called Outgoing APDU data [ 5 bytes] ===================================== 00 CA DF 30 05 ...0. ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 2 bytes] ===================================== 6A 88 j. ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called [pkcs15-tool] reader-pcsc.c:688:pcsc_unlock: called trying driver: starcos ATR : 3b:80:80:01:01 ATR try : 3B:B7:94:00:c0:24:31:fe:65:53:50:4b:32:33:90:00:b4 ignored - wrong length ATR try : 3B:B7:94:00:81:31:fe:65:53:50:4b:32:33:90:00:d1 ignored - wrong length ATR try : 3b:b7:18:00:c0:3e:31:fe:65:53:50:4b:32:34:90:00:25 ignored - wrong length trying driver: tcos ATR : 3b:80:80:01:01 ATR try : 3B:BA:13:00:81:31:86:5D:00:64:05:0A:02:01:31:80:90:00:8B ignored - wrong length ATR try : 3B:BA:14:00:81:31:86:5D:00:64:05:14:02:02:31:80:90:00:91 ignored - wrong length ATR try : 3B:BA:96:00:81:31:86:5D:00:64:05:60:02:03:31:80:90:00:66 ignored - wrong length ATR try : 3B:BA:96:00:81:31:86:5D:00:64:05:7B:02:03:31:80:90:00:7D ignored - wrong length ATR try : 3B:BF:96:00:81:31:FE:5D:00:64:04:11:03:01:31:C0:73:F7:01:D0:00:90:00:7D ignored - wrong length trying driver: openpgp ATR : 3b:80:80:01:01 ATR try : 3b:fa:13:00:ff:81:31:80:45:00:31:c1:73:c0:01:00:00:90:00:b1 ignored - wrong length trying driver: jcop ATR : 3b:80:80:01:01 ATR try : 3B:E6:00:FF:81:31:FE:45:4A:43:4F:50:33:31:06 ignored - wrong length trying driver: belpic ATR : 3b:80:80:01:01 ATR try : 3B:98:13:40:0A:A5:03:01:01:01:AD:13:11 ignored - wrong length ATR try : 3B:98:94:40:0A:A5:03:01:01:01:AD:13:10 ignored - wrong length ATR try : 3B:98:94:40:FF:A5:03:01:01:01:AD:13:10 ignored - wrong length trying driver: atrust-acos trying driver: muscle [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called [pkcs15-tool] reader-pcsc.c:649:pcsc_lock: called Outgoing APDU data [ 10 bytes] ===================================== 00 A4 04 00 05 A0 00 00 00 01 .......... ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 2 bytes] ===================================== 6A 82 j. ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called [pkcs15-tool] reader-pcsc.c:688:pcsc_unlock: called [pkcs15-tool] muscle.c:276:msc_select_applet: returning with: -1200 trying driver: incrypto34 ATR : 3b:80:80:01:01 ATR try : 3b:ff:18:00:ff:81:31:fe:55:00:6b:02:09:02:00:01:01:01:43:4e:53:10:31:80:9f ignored - wrong length ATR try : 3b:ff:18:00:ff:81:31:fe:55:00:6b:02:09:02:00:01:01:01:44:53:44:10:31:80:92 ignored - wrong length trying driver: acos5 ATR : 3b:80:80:01:01 ATR try : 3b:be:18:00:00:41:05:10:00:00:00:00:00:00:00:00:00:90:00 ignored - wrong length trying driver: akis ATR : 3b:80:80:01:01 ATR try : 3b:ba:11:00:81:31:fe:4d:55:45:4b:41:45:20:56:31:2e:30:ae ignored - wrong length trying driver: gnd ATR : 3b:80:80:01:01 ATR try : 3b:80:80:01:01 matched: Giesecke & Devrient card info: GND, 20000, 0x20 [pkcs15-tool] card.c:223:sc_connect_card: returning with: 0 Using card driver Giesecke & Devrient. [pkcs15-tool] card.c:286:sc_lock: called [pkcs15-tool] reader-pcsc.c:649:pcsc_lock: called [pkcs15-tool] pkcs15.c:703:sc_pkcs15_bind: called [pkcs15-tool] card.c:286:sc_lock: called trying normal pkcs15 processing called; type=2, path=3f002f00 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 8 bytes] ===================================== 00 A4 02 00 02 2F 00 00 ...../.. ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 2 bytes] ===================================== 6A 82 j. ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called sw1 = 0x6a, sw2 = 0x82 File not found [pkcs15-tool] iso7816.c:469:iso7816_select_file: returning with: -1201 [pkcs15-tool] card.c:561:sc_select_file: returning with: -1201 called; type=2, path=3f005015 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 7 bytes] ===================================== 00 A4 02 00 02 50 15 .....P. ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 2 bytes] ===================================== 6A 82 j. ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called sw1 = 0x6a, sw2 = 0x82 File not found [pkcs15-tool] iso7816.c:462:iso7816_select_file: returning with: -1201 [pkcs15-tool] card.c:561:sc_select_file: returning with: -1201 called; type=2, path=3f005031 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 8 bytes] ===================================== 00 A4 02 00 02 50 31 00 .....P1. ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 11 bytes] ===================================== 6F 07 80 02 00 30 82 01 01 90 00 o....0..... ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called sw1 = 0x90, sw2 = 0x00 processing FCI bytes bytes in file: 48 shareable: no type: working EF EF structure: 1 [pkcs15-tool] card.c:561:sc_select_file: returning with: 0 called; 48 bytes at index 0 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 5 bytes] ===================================== 00 B0 00 00 30 ....0 ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 50 bytes] ===================================== A0 06 30 04 04 02 44 00 A1 06 30 04 04 02 44 01 ..0...D...0...D. A4 06 30 04 04 02 44 04 A7 06 30 04 04 02 44 07 ..0...D...0...D. A8 06 30 04 04 02 44 08 00 00 00 00 00 00 00 00 ..0...D......... 90 00 .. ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called [pkcs15-tool] iso7816.c:133:iso7816_read_binary: returning with: 48 [pkcs15-tool] card.c:431:sc_read_binary: returning with: 48 called, left=48, depth 0, choice Looking for 'privateKeys', tag 0x21000000 , CHOICE decoding 'privateKeys' called, left=6, depth 1 Looking for 'path', tag 0x1000010 decoding 'path' called, left=4, depth 2 Looking for 'path', tag 0x4 decoding 'path' Looking for 'index', tag 0x2 , OPTIONAL not present Looking for 'length', tag 0x20000000 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1249:asn1_decode: returning with: 0 called, left=40, depth 0, choice Looking for 'privateKeys', tag 0x21000000 , CHOICE not present Looking for 'publicKeys', tag 0x21000001 , CHOICE decoding 'publicKeys' called, left=6, depth 1 Looking for 'path', tag 0x1000010 decoding 'path' called, left=4, depth 2 Looking for 'path', tag 0x4 decoding 'path' Looking for 'index', tag 0x2 , OPTIONAL not present Looking for 'length', tag 0x20000000 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1249:asn1_decode: returning with: 1 called, left=32, depth 0, choice Looking for 'privateKeys', tag 0x21000000 , CHOICE not present Looking for 'publicKeys', tag 0x21000001 , CHOICE not present Looking for 'trustedPublicKeys', tag 0x21000002 , CHOICE not present Looking for 'secretKeys', tag 0x21000003 , CHOICE not present Looking for 'certificates', tag 0x21000004 , CHOICE decoding 'certificates' called, left=6, depth 1 Looking for 'path', tag 0x1000010 decoding 'path' called, left=4, depth 2 Looking for 'path', tag 0x4 decoding 'path' Looking for 'index', tag 0x2 , OPTIONAL not present Looking for 'length', tag 0x20000000 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1249:asn1_decode: returning with: 4 called, left=24, depth 0, choice Looking for 'privateKeys', tag 0x21000000 , CHOICE not present Looking for 'publicKeys', tag 0x21000001 , CHOICE not present Looking for 'trustedPublicKeys', tag 0x21000002 , CHOICE not present Looking for 'secretKeys', tag 0x21000003 , CHOICE not present Looking for 'certificates', tag 0x21000004 , CHOICE not present Looking for 'trustedCertificates', tag 0x21000005 , CHOICE not present Looking for 'usefulCertificates', tag 0x21000006 , CHOICE not present Looking for 'dataObjects', tag 0x21000007 , CHOICE decoding 'dataObjects' called, left=6, depth 1 Looking for 'path', tag 0x1000010 decoding 'path' called, left=4, depth 2 Looking for 'path', tag 0x4 decoding 'path' Looking for 'index', tag 0x2 , OPTIONAL not present Looking for 'length', tag 0x20000000 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1249:asn1_decode: returning with: 7 called, left=16, depth 0, choice Looking for 'privateKeys', tag 0x21000000 , CHOICE not present Looking for 'publicKeys', tag 0x21000001 , CHOICE not present Looking for 'trustedPublicKeys', tag 0x21000002 , CHOICE not present Looking for 'secretKeys', tag 0x21000003 , CHOICE not present Looking for 'certificates', tag 0x21000004 , CHOICE not present Looking for 'trustedCertificates', tag 0x21000005 , CHOICE not present Looking for 'usefulCertificates', tag 0x21000006 , CHOICE not present Looking for 'dataObjects', tag 0x21000007 , CHOICE not present Looking for 'authObjects', tag 0x21000008 , CHOICE decoding 'authObjects' called, left=6, depth 1 Looking for 'path', tag 0x1000010 decoding 'path' called, left=4, depth 2 Looking for 'path', tag 0x4 decoding 'path' Looking for 'index', tag 0x2 , OPTIONAL not present Looking for 'length', tag 0x20000000 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1249:asn1_decode: returning with: 8 called, left=8, depth 0, choice The following DFs were found: DF type 0, path 3f004400, index 0, count -1 DF type 1, path 3f004401, index 0, count -1 DF type 4, path 3f004404, index 0, count -1 DF type 7, path 3f004407, index 0, count -1 DF type 8, path 3f004408, index 0, count -1 called; type=2, path=3f005032 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 8 bytes] ===================================== 00 A4 02 00 02 50 32 00 .....P2. ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 11 bytes] ===================================== 6F 07 80 02 00 75 82 01 01 90 00 o....u..... ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called sw1 = 0x90, sw2 = 0x00 processing FCI bytes bytes in file: 117 shareable: no type: working EF EF structure: 1 [pkcs15-tool] card.c:561:sc_select_file: returning with: 0 called; 117 bytes at index 0 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 5 bytes] ===================================== 00 B0 00 00 75 ....u ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 119 bytes] ===================================== 30 73 02 01 00 04 08 90 15 95 00 2B 0C 15 04 0C 0s.........+.... 12 41 2E 45 2E 54 2E 20 45 75 72 6F 70 65 20 42 .A.E.T. Europe B 2E 56 2E 80 20 73 65 76 79 61 6D 6D 20 20 20 20 .V.. sevyamm 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 03 02 04 50 83 2A 43 6F 70 79 72 ...P.*Copyr 69 67 68 74 20 28 63 29 20 31 39 39 37 2D 32 30 ight (c) 1997-20 30 38 20 41 2E 45 2E 54 2E 20 45 75 72 6F 70 65 08 A.E.T. Europe 20 42 2E 56 2E 90 00 B.V... ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called [pkcs15-tool] iso7816.c:133:iso7816_read_binary: returning with: 117 [pkcs15-tool] card.c:431:sc_read_binary: returning with: 117 called, left=117, depth 0 Looking for 'TokenInfo', tag 0x1000010 decoding 'TokenInfo' called, left=115, depth 1 Looking for 'version', tag 0x2 decoding 'version' Looking for 'serialNumber', tag 0x4 , OPTIONAL decoding 'serialNumber' Looking for 'manufacturerID', tag 0xc , OPTIONAL decoding 'manufacturerID' Looking for 'label', tag 0x20000000 , OPTIONAL decoding 'label' Looking for 'label-tw', tag 0x21000000 , OPTIONAL not present Looking for 'tokenflags', tag 0x3 decoding 'tokenflags' Looking for 'seInfo', tag 0x1000010 , OPTIONAL not present Looking for 'recordInfo', tag 0x21000001 , OPTIONAL not present Looking for 'supportedAlgorithms', tag 0x21000002 , OPTIONAL not present Looking for 'issuerId', tag 0x20000003 , OPTIONAL decoding 'issuerId' Looking for 'holderId', tag 0x20000004 , OPTIONAL not present Looking for 'lastUpdate', tag 0x20000005 , OPTIONAL not present Looking for 'preferredLanguage', tag 0x13 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] card.c:313:sc_unlock: called called, path=3f004408, index=0, count=-1 [pkcs15-tool] card.c:286:sc_lock: called called; type=2, path=3f004408 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 8 bytes] ===================================== 00 A4 02 00 02 44 08 00 .....D.. ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 11 bytes] ===================================== 6F 07 80 02 00 FF 82 01 01 90 00 o.......... ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called sw1 = 0x90, sw2 = 0x00 processing FCI bytes bytes in file: 255 shareable: no type: working EF EF structure: 1 [pkcs15-tool] card.c:561:sc_select_file: returning with: 0 called; 255 bytes at index 0 [pkcs15-tool] card.c:286:sc_lock: called called; 128 bytes at index 0 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 5 bytes] ===================================== 00 B0 00 00 80 ..... ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 130 bytes] ===================================== 30 47 30 11 0C 08 55 73 65 72 20 50 69 6E 03 02 0G0...User Pin.. 06 C0 04 01 01 30 03 04 01 03 A1 2D 30 2B 03 03 .....0.....-0+.. 04 CC 90 0A 01 01 02 01 04 02 01 0F 80 01 03 04 ................ 01 00 18 0F 32 30 30 39 31 30 31 33 30 38 31 35 ....200910130815 35 30 5A 30 04 04 02 3F 00 30 42 30 0C 0C 06 53 50Z0...?.0B0...S 4F 20 50 69 6E 03 02 06 C0 30 03 04 01 01 A1 2D O Pin....0.....- 30 2B 03 03 04 CF 90 0A 01 01 02 01 04 02 01 0F 0+.............. 80 01 01 04 01 00 18 0F 32 30 30 39 31 30 31 35 ........20091015 90 00 .. ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called [pkcs15-tool] iso7816.c:133:iso7816_read_binary: returning with: 128 [pkcs15-tool] card.c:431:sc_read_binary: returning with: 128 called; 127 bytes at index 128 [pkcs15-tool] apdu.c:516:sc_transmit_apdu: called [pkcs15-tool] card.c:286:sc_lock: called Outgoing APDU data [ 5 bytes] ===================================== 00 B0 00 80 7F ..... ====================================================================== [pkcs15-tool] reader-pcsc.c:161:pcsc_internal_transmit: called Incoming APDU data [ 129 bytes] ===================================== 31 30 35 32 31 33 5A 30 04 04 02 3F 00 A1 30 30 105213Z0...?..00 1F 0C 16 43 68 61 6C 6C 65 6E 67 65 20 52 65 73 ...Challenge Res 70 6F 6E 73 65 20 4B 65 79 03 02 06 C0 04 01 01 ponse Key....... 30 03 04 01 02 A1 08 30 06 01 01 FF 04 01 02 00 0......0........ 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 90 ................ 00 . ====================================================================== [pkcs15-tool] card.c:313:sc_unlock: called [pkcs15-tool] iso7816.c:133:iso7816_read_binary: returning with: 127 [pkcs15-tool] card.c:431:sc_read_binary: returning with: 127 [pkcs15-tool] card.c:313:sc_unlock: called [pkcs15-tool] card.c:428:sc_read_binary: returning with: 255 [pkcs15-tool] card.c:313:sc_unlock: called called, left=255, depth 0 Looking for 'pin', tag 0x1000010 decoding 'pin' called, left=71, depth 1 Looking for 'commonObjectAttributes', tag 0x1000010 decoding 'commonObjectAttributes' called, left=17, depth 2 Looking for 'label', tag 0xc , OPTIONAL decoding 'label' Looking for 'flags', tag 0x3 , OPTIONAL decoding 'flags' Looking for 'authId', tag 0x4 , OPTIONAL decoding 'authId' Looking for 'userConsent', tag 0x2 , OPTIONAL not present Looking for 'accessControlRules', tag 0x1000010 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 Looking for 'classAttributes', tag 0x1000010 decoding 'classAttributes' called, left=3, depth 2 Looking for 'authId', tag 0x4 decoding 'authId' [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 Looking for 'subClassAttributes', tag 0x21000000 , OPTIONAL not present Looking for 'typeAttributes', tag 0x21000001 decoding 'typeAttributes' called, left=45, depth 2 Looking for 'pinAttributes', tag 0x1000010 decoding 'pinAttributes' called, left=43, depth 3 Looking for 'pinFlags', tag 0x3 decoding 'pinFlags' Looking for 'pinType', tag 0xa decoding 'pinType' Looking for 'minLength', tag 0x2 decoding 'minLength' Looking for 'storedLength', tag 0x2 decoding 'storedLength' Looking for 'maxLength', tag 0x2 , OPTIONAL not present Looking for 'pinReference', tag 0x20000000 , OPTIONAL decoding 'pinReference' Looking for 'padChar', tag 0x4 , OPTIONAL decoding 'padChar' Looking for 'lastPinChange', tag 0x18 , OPTIONAL decoding 'lastPinChange' Looking for 'path', tag 0x1000010 , OPTIONAL decoding 'path' called, left=4, depth 4 Looking for 'path', tag 0x4 decoding 'path' Looking for 'index', tag 0x2 , OPTIONAL not present Looking for 'length', tag 0x20000000 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 called, left=182, depth 0 Looking for 'pin', tag 0x1000010 decoding 'pin' called, left=66, depth 1 Looking for 'commonObjectAttributes', tag 0x1000010 decoding 'commonObjectAttributes' called, left=12, depth 2 Looking for 'label', tag 0xc , OPTIONAL decoding 'label' Looking for 'flags', tag 0x3 , OPTIONAL decoding 'flags' Looking for 'authId', tag 0x4 , OPTIONAL not present Looking for 'userConsent', tag 0x2 , OPTIONAL not present Looking for 'accessControlRules', tag 0x1000010 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 Looking for 'classAttributes', tag 0x1000010 decoding 'classAttributes' called, left=3, depth 2 Looking for 'authId', tag 0x4 decoding 'authId' [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 Looking for 'subClassAttributes', tag 0x21000000 , OPTIONAL not present Looking for 'typeAttributes', tag 0x21000001 decoding 'typeAttributes' called, left=45, depth 2 Looking for 'pinAttributes', tag 0x1000010 decoding 'pinAttributes' called, left=43, depth 3 Looking for 'pinFlags', tag 0x3 decoding 'pinFlags' Looking for 'pinType', tag 0xa decoding 'pinType' Looking for 'minLength', tag 0x2 decoding 'minLength' Looking for 'storedLength', tag 0x2 decoding 'storedLength' Looking for 'maxLength', tag 0x2 , OPTIONAL not present Looking for 'pinReference', tag 0x20000000 , OPTIONAL decoding 'pinReference' Looking for 'padChar', tag 0x4 , OPTIONAL decoding 'padChar' Looking for 'lastPinChange', tag 0x18 , OPTIONAL decoding 'lastPinChange' Looking for 'path', tag 0x1000010 , OPTIONAL decoding 'path' called, left=4, depth 4 Looking for 'path', tag 0x4 decoding 'path' Looking for 'index', tag 0x2 , OPTIONAL not present Looking for 'length', tag 0x20000000 , OPTIONAL not present [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 [pkcs15-tool] asn1.c:1250:asn1_decode: returning with: 0 called, left=114, depth 0 Looking for 'pin', tag 0x1000010 not present next tag: A1 30 30 1F 0C 16 43 68 61 6C mandatory ASN.1 object 'pin' not found [pkcs15-tool] asn1.c:1232:asn1_decode: returning with: Required ASN.1 object not found [pkcs15-tool] pkcs15-pin.c:95:sc_pkcs15_decode_aodf_entry: ASN.1 decoding failed : Required ASN.1 object not found [pkcs15-tool] pkcs15.c:1478:sc_pkcs15_parse_df: Error decoding DF entry: Require d ASN.1 object not found [pkcs15-tool] pkcs15.c:894:__sc_pkcs15_search_objects: DF parsing failed: Requir ed ASN.1 object not found [pkcs15-tool] pkcs15.c:836:sc_pkcs15_unbind: called [pkcs15-tool] card.c:313:sc_unlock: called [pkcs15-tool] reader-pcsc.c:688:pcsc_unlock: called [pkcs15-tool] card.c:237:sc_disconnect_card: called [pkcs15-tool] card.c:252:sc_disconnect_card: returning with: 0 [pkcs15-tool] ctx.c:765:sc_release_context: called _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel