Running Ubuntu 12.10LTS on a desktop.
I have a SCR331 USB Smart card reader up and running with a generic brand of smartcard using the "entersafe" driver.
$ opensc-tool --info
opensc 0.12.2 [gcc 4.6.3]
Enabled features: zlib readline openssl pcsc(libpcsclite.so.
1)
The reader works well:
$ opensc-tool -l
# Detected readers (pcsc)
Nr. Card Features Name
0 Yes SCM SCR 331 [CCID Interface] (Serial Number Removed) 00 00
That setup works great with the pkcs15 tools.
I took the same set-up and tried to use Gemplus Xpresso Pro 64K FIPS card (assumed to be blank and un-initialized):
The default (or auto-detected) driver fails, but
$ opensc-tool -c cyberflex --atr
Using reader with a card: SCM SCR 331 [CCID Interface] (Serial Number Removed) 00 00
3b:6b:00:00:80:65:b0:83:01:03:74:83:00:90:00
shows the ATR.
Using pcsc_scan:
$pcsc_scan
PC/SC device scanner
V 1.4.18 (c) 2001-2011, Ludovic Rousseau <ludovic.rousseau@free.fr>
Compiled with PC/SC lite version: 1.7.4
Using reader plug'n play mechanism
Scanning present readers...
0: SCM SCR 331 [CCID Interface] (Serial Number Removed) 00 00
Sun Sep 15 19:44:24 2013
Reader 0: SCM SCR 331 [CCID Interface] (Serial Number Removed) 00 00
Card state: Card inserted,
ATR: 3B 6B 00 00 80 65 B0 83 01 03 74 83 00 90 00
ATR: 3B 6B 00 00 80 65 B0 83 01 03 74 83 00 90 00
+ TS = 3B --> Direct Convention
+ T0 = 6B, Y(1): 0110, K: 11 (historical bytes)
TB(1) = 00 --> VPP is not electrically connected
TC(1) = 00 --> Extra guard time: 0
+ Historical bytes: 80 65 B0 83 01 03 74 83 00 90 00
Category indicator byte: 80 (compact TLV data object)
Tag: 6, len: 5 (pre-issuing data)
The reader and software can definately see the card, but the pkcs15-init and pkcs15-tool and pkcs15-init programs fail:
pkcs15-init -E
Using reader with a card: SCM SCR 331 [CCID Interface] (Serial Number Removed) 00 00
Failed to connect to card: Internal error
Any ideas how to get this card working? What is the correct driver for this card. I believe it is a driver issue where the commands aren't getting sent correctly, but the hardware is all in place.
I am not trying to make this compatible with Windows machines or trying to use cards that already have data on them, just trying to use new cards for linux machines.