LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-15-2013, 07:26 PM   #1
Bryan88
LQ Newbie
 
Registered: Dec 2006
Location: NY
Distribution: Ubuntu
Posts: 21

Rep: Reputation: Disabled
Getting GemPlus Xpresso Pro 64K FIPS Smartcard working with pkcs15 tools


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.
 
  


Reply

Tags
cryptsetup, smartcard, ubuntu 12.10


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VMware tools in 13.1 - Any hints / pro's / con's sjampoo Slackware 3 03-17-2011 11:46 AM
Fedora Linux - Smartcard reader stopped working after time cmconsult Linux - Newbie 1 05-05-2008 11:09 AM
Pro Tools for Linux ? ultraman Linux - Newbie 2 12-19-2004 02:39 PM
Is there the equivalent of Pro Tools for Linux? Travis86 Linux - Software 4 04-15-2003 07:28 PM
Pro tools substitute Goatdemon Linux - Software 1 07-08-2002 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration