On Wednesday 22 March 2006 16:45, Chaskiel M Grundman wrote: > --On Wednesday, March 22, 2006 03:52:20 PM -0800 Justin Karneges > > <[EMAIL PROTECTED]> wrote: > > On Wednesday 22 March 2006 15:05, you wrote: > > > > But --list-files does not: > > > ># opensc-tool -vvvvvvvv --list-files > > card.c:571:sc_list_files: called > > card.c:573:sc_list_files: returning with: Not supported > > sc_list_files() failed: Not supported > > [snip] > > > > What is to blame here? > > It appears from the source, that starcos doesn't support list_files. That > isn't too surprising, as file listing is not standardized in 7816-4 (or any > other part of 7816, IIRC).
Ah hah. > run opensc-explorer, and try the following sequence: > > info > get 2f00 > cd 5015 > info > get 5031 > get 5032 > get 4401 > > (the 2f00 and 4401 parts might fail, the others shouldn't) > you can also see if pkcs15-tool --list-pins (or keys or certificates) works Log below. Doesn't look good. Could these problems be related to the openct driver, or are we done with that? It would be nice to cross something off the list... -Justin # opensc-explorer -vvvvvvvv OpenSC Explorer version 0.10.1 sc.c:140:sc_detect_card_presence: called reader-openct.c:208:openct_reader_detect_card_presence: called sc.c:145:sc_detect_card_presence: returning with: 1 card.c:372:sc_connect_card: called reader-openct.c:232:openct_reader_connect: called card.c:402:sc_connect_card: matching configured ATRs card.c:447:sc_connect_card: matching built-in ATRs [snip] card.c:453:sc_connect_card: trying driver: starcos card.c:961:match_atr_table: ATR : 3b:b7:18:00:c0:3e:31:fe:65:53:50:4b:32:34:90:00:25 card.c:969:match_atr_table: ATR try : 3B:B7:94:00:c0:24:31:fe:65:53:50:4b:32:33:90:00:b4 card.c:969:match_atr_table: ATR try : 3B:B7:94:00:81:31:fe:65:53:50:4b:32:33:90:00:d1 card.c:969:match_atr_table: ATR try : 3B:B7:18:00:C0:3E:31:FE:65:53:50:4B:32:34:90:00:25 card.c:459:sc_connect_card: matched: STARCOS SPK 2.3 card.c:487:sc_connect_card: card info: STARCOS SPK 2.3, 7001, 0x0 card.c:488:sc_connect_card: returning with: 0 card.c:525:sc_lock: called reader-openct.c:388:openct_reader_lock: called card.c:748:sc_select_file: called; type=2, path=3f00 card-starcos.c:367:starcos_select_file: called card-starcos.c:374:starcos_select_file: current path (path, valid): (len: 0) card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 8 bytes (resp. 258 bytes): 00 A4 00 00 02 3F 00 00 .....?.. card.c:274:sc_transmit_apdu: Received 0 bytes (SW1=62 SW2=84) card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 7 bytes (resp. 258 bytes): 00 A4 00 0C 02 3F 00 .....?. card.c:274:sc_transmit_apdu: Received 0 bytes (SW1=90 SW2=00) card-starcos.c:356:starcos_select_fid: returning with: 0 card.c:770:sc_select_file: returning with: 0 OpenSC [3F00]> info Dedicated File ID 3F00 File path: 3F00 File size: 0 bytes ACL for SELECT: N/A ACL for LOCK: N/A ACL for DELETE: N/A ACL for CREATE: N/A ACL for REHABILITATE: N/A ACL for INVALIDATE: N/A ACL for LIST FILES: N/A OpenSC [3F00]> get 2f00 card.c:748:sc_select_file: called; type=2, path=3f002f00 card-starcos.c:367:starcos_select_file: called card-starcos.c:374:starcos_select_file: current path (path, valid): 3f00 (len: 2) card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 8 bytes (resp. 258 bytes): 00 A4 00 00 02 2F 00 00 ...../.. card.c:274:sc_transmit_apdu: Received 0 bytes (SW1=6A SW2=82) card-starcos.c:1238:starcos_check_sw: sw1 = 0x6a, sw2 = 0x82 iso7816.c:98:iso7816_check_sw: File not found card-starcos.c:312:starcos_select_fid: returning with: File not found card.c:770:sc_select_file: returning with: File not found unable to select file: File not found OpenSC [3F00]> cd 5015 card.c:748:sc_select_file: called; type=2, path=3f005015 card-starcos.c:367:starcos_select_file: called card-starcos.c:374:starcos_select_file: current path (path, valid): 3f00 (len: 2) card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 8 bytes (resp. 258 bytes): 00 A4 00 00 02 50 15 00 .....P.. card.c:274:sc_transmit_apdu: Received 0 bytes (SW1=62 SW2=84) card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 7 bytes (resp. 258 bytes): 00 A4 00 0C 02 50 15 .....P. card.c:274:sc_transmit_apdu: Received 0 bytes (SW1=90 SW2=00) card-starcos.c:356:starcos_select_fid: returning with: 0 card.c:770:sc_select_file: returning with: 0 OpenSC [3F00/5015]> info Dedicated File ID 5015 File path: 3F00/5015 File size: 0 bytes ACL for SELECT: N/A ACL for LOCK: N/A ACL for DELETE: N/A ACL for CREATE: N/A ACL for REHABILITATE: N/A ACL for INVALIDATE: N/A ACL for LIST FILES: N/A OpenSC [3F00/5015]> get 5031 card.c:748:sc_select_file: called; type=2, path=3f0050155031 card-starcos.c:367:starcos_select_file: called card-starcos.c:374:starcos_select_file: current path (path, valid): 3f005015 (len: 4) card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 8 bytes (resp. 258 bytes): 00 A4 00 00 02 50 31 00 .....P1. card.c:274:sc_transmit_apdu: Received 9 bytes (SW1=90 SW2=00) 6F 07 80 02 00 30 82 01 01 o....0... card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 5 bytes (resp. 258 bytes): 00 B0 00 00 01 ..... card.c:274:sc_transmit_apdu: Received 1 bytes (SW1=90 SW2=00) A0 . card-starcos.c:138:process_fci: processing FCI bytes card-starcos.c:160:process_fci: bytes in file: 48 card-starcos.c:209:process_fci: type: working EF card-starcos.c:210:process_fci: EF structure: transparent card-starcos.c:356:starcos_select_fid: returning with: 0 card.c:770:sc_select_file: returning with: 0 card.c:620:sc_read_binary: called; 48 bytes at index 0 card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 5 bytes (resp. 258 bytes): 00 B0 00 00 30 ....0 card.c:228:sc_transceive: Unable to transmit: Generic reader error card.c:263:sc_transmit_apdu: transceive() failed: Generic reader error iso7816.c:121:iso7816_read_binary: APDU transmit failed: Generic reader error card.c:651:sc_read_binary: returning with: Generic reader error read failed: Generic reader error card.c:748:sc_select_file: called; type=2, path=3f005015 card-starcos.c:367:starcos_select_file: called card-starcos.c:374:starcos_select_file: current path (path, valid): 3f005015 (len: 4) card-starcos.c:468:starcos_select_file: cache hit card.c:770:sc_select_file: returning with: 0 OpenSC [3F00/5015]> get 5032 card.c:748:sc_select_file: called; type=2, path=3f0050155032 card-starcos.c:367:starcos_select_file: called card-starcos.c:374:starcos_select_file: current path (path, valid): 3f005015 (len: 4) card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 8 bytes (resp. 258 bytes): 00 A4 00 00 02 50 32 00 .....P2. card.c:228:sc_transceive: Unable to transmit: Generic reader error card.c:263:sc_transmit_apdu: transceive() failed: Generic reader error card-starcos.c:283:starcos_select_fid: APDU transmit failed: Generic reader error card.c:770:sc_select_file: returning with: Generic reader error unable to select file: Generic reader error OpenSC [3F00/5015]> get 4401 card.c:748:sc_select_file: called; type=2, path=3f0050154401 card-starcos.c:367:starcos_select_file: called card-starcos.c:374:starcos_select_file: current path (path, valid): 3f005015 (len: 4) card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 8 bytes (resp. 258 bytes): 00 A4 00 00 02 44 01 00 .....D.. card.c:228:sc_transceive: Unable to transmit: Generic reader error card.c:263:sc_transmit_apdu: transceive() failed: Generic reader error card-starcos.c:283:starcos_select_fid: APDU transmit failed: Generic reader error card.c:770:sc_select_file: returning with: Generic reader error unable to select file: Generic reader error OpenSC [3F00/5015]> quit card.c:545:sc_unlock: called card.c:550:sc_unlock: Calling card logout function card.c:254:sc_transmit_apdu: called card.c:221:sc_transceive: Sending 7 bytes (resp. 258 bytes): 00 A4 00 0C 02 3F 00 .....?. card.c:228:sc_transceive: Unable to transmit: Generic reader error card.c:263:sc_transmit_apdu: transceive() failed: Generic reader error card-starcos.c:1341:starcos_logout: APDU re-transmit failed: Generic reader error reader-openct.c:415:openct_reader_unlock: called card.c:500:sc_disconnect_card: called reader-openct.c:281:openct_reader_disconnect: called card.c:515:sc_disconnect_card: returning with: 0 ctx.c:716:sc_release_context: called reader-openct.c:181:openct_reader_release: called reader-openct.c:181:openct_reader_release: called reader-openct.c:181:openct_reader_release: called reader-openct.c:181:openct_reader_release: called reader-openct.c:181:openct_reader_release: called reader-openct.c:166:openct_reader_finish: called _______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel