Hi everyone, I'm new to OpenSc and I'm trying to read (and write...hopefully) information from a blank card (if there is some information, like a RSA key stored). I use a CASTLES EZ100PU and a SLE5542 blank card. OS: ubuntu.
when I send *pcscan* command the reader is detected: *manager@kiosk:~$ pcsc_scan* *PC/SC device scanner V 1.4.16 (c) 2001-2009, Ludovic Rousseau <ludovic.rouss...@free.fr> Compiled with PC/SC lite version: 1.5.3 Scanning present readers... 0: CASTLES EZ100PU 00 00 Tue Aug 7 18:40:15 2012 Reader 0: CASTLES EZ100PU 00 00 Card state: Card inserted, ATR: 3B 8F 80 01 80 4F 0C A0 00 00 03 06 0F A0 01 00 00 00 00 C6 ATR: 3B 8F 80 01 80 4F 0C A0 00 00 03 06 0F A0 01 00 00 00 00 C6 + TS = 3B --> Direct Convention + T0 = 8F, Y(1): 1000, K: 15 (historical bytes) TD(1) = 80 --> Y(i+1) = 1000, Protocol T = 0 ----- TD(2) = 01 --> Y(i+1) = 0000, Protocol T = 1 ----- + Historical bytes: 80 4F 0C A0 00 00 03 06 0F A0 01 00 00 00 00 Category indicator byte: 80 (compact TLV data object) Tag: 4, len: F (initial access data) Initial access data: 0C A0 00 00 03 06 0F A0 01 00 00 00 00 + TCK = C6 (correct checksum) Possibly identified card (using /usr/share/pcsc/smartcard_list.txt): 3B 8F 80 01 80 4F 0C A0 00 00 03 06 0F A0 01 00 00 00 00 C6 3B 8F 80 01 80 4F 0C A0 00 00 03 06 0F .. .. 00 00 00 00 .. Contact (7816-10) 2WBP (as per PCSC std part3) * but when I send *pkcs15-tool --list-keys* command: *root@kiosk:~# pkcs15-tool --list-keys Using reader with a card: CASTLES EZ100PU 00 00 [pkcs15-tool] reader-pcsc.c:199:pcsc_internal_transmit: SCardTransmit failed: 0x80100013 [pkcs15-tool] reader-pcsc.c:239:pcsc_transmit: unable to transmit [pkcs15-tool] apdu.c:394:do_single_transmit: unable to transmit APDU* then, pcscan doesn't work anymore *manager@kiosk:~$ pcsc_scan PC/SC device scanner V 1.4.16 (c) 2001-2009, Ludovic Rousseau <ludovic.rouss...@free.fr> Compiled with PC/SC lite version: 1.5.3 SCardEstablishContext: Service not available.* any idea? thks
_______________________________________________ opensc-devel mailing list opensc-devel@lists.opensc-project.org http://www.opensc-project.org/mailman/listinfo/opensc-devel