OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: [Muscle] Info about smartcard!

From: Nils Larsch (nlarschgmx.net)
Date: Tue Aug 09 2005 - 14:52:03 CDT


Antonio A wrote:
> hi friends of muscle,
> i write because you are the people who know about
> using smartcards on Linux.
>
> I am working on an application that have to use
> smartcards to export private keys and digital
> certificates. i have a LTC31 smart card reader from
> C3PO (usb interface) and a ceres smart card
> (criponita).
>
> Both smart card and reader worked correctly on debian
> when i installed the following packages:
>
> libccid 0.9.2-2
> libpcsclite1 1.2.9-beta6-1
> libusb 1:0.1.8
> pcscd 1.2.9-beta6-1
> pcsc-tools 1.4.0-1
>
> I could scan the reader and card with:
> moe:~# pcsc_scan
> PC/SC device scanner
> V 1.4.0 (c) 2001-2004, Ludovic Rousseau
> <ludovic.rousseaufree.fr>
> PC/SC lite version: 1.2.9-beta6
> Scanning present readers
> 0: LTC31 00 00
>
> Wed Aug 3 08:50:15 2005
> Reader 0 (LTC31 00 00)
> Card state: Card removed,
>
> Wed Aug 3 08:50:41 2005
> Reader 0 (LTC31 00 00)
> Card state: Card inserted,
> ATR: 3B EF 00 00 40 14 80 25 43 45 52 45 53 57
> 01 16 01 01 03 90 00
>
> ATR: 3B EF 00 00 40 14 80 25 43 45 52 45 53 57 01 16
> 01 01 03 90 00
> + TS = 3B --> Direct Convention
> + T0 = EF, Y(1): 1110, K: 15 (historical bytes)
> TB(1) = 00 --> Programming Param P: 0 Volts, I: 0
> milli-Ampères
> TC(1) = 00 --> Extra guard time: 0
> TD(1) = 40 --> Y(i+1) = 0100, Protocol T = 0
> -----
> TC(2) = 14 --> Work waiting time: 960 x 20 x (Fi/F)
> + Historical bytes: 80 25 43 45 52 45 53 57 01 16 01
> 01 03 90 00
>
> Possibly identified card:
> 3B EF 00 00 40 14 80 25 43 45 52 45 53 57 01 16 01 01
> 03 90 00
> Electronic Identification Card from the FNMT,
> the Spanish Official
> Certification Authority
>
> Here is my problem: I have read
>
> *- ISO/IEC 7816 Part 4: Interindustry command for
> interchange
>
> *- MUSCLE PC/SC Lite API
> Toolkit API Reference Documentation
>
> *- CamCard C++ class for accessing the University Card
> (cambridge university)
>
> *- and many others docs
>
>
> but i have doubts about the following:
>
> i) how could i set up the smart card file system
> according to my needs? or what commands do i have to
> use?

for this you need the card os manual as the commands for
card initialization are card specific

>
> ii) where could i find information about the correct
> sintax of APDU commands and how to write them? (i have
> already read ISO/IEC 7816 Part 4 but i still have some
> lagoons)

in the card os manual or try [1]

Nils

[1] http://opensc-ceres.software-libre.org/
_______________________________________________
Muscle mailing list
Musclelists.musclecard.com
http://lists.drizzle.com/mailman/listinfo/muscle