Some Linux experiments with the ACR38 smartcards reader

Trying to read smartcards using only libusb. For fun and learning.

Nom :

02 avril 2007

What is this all about...

The ACR38U is the smartcard reader (from ACS) distributed by the belgian gouvernment to read the new (electronic) Id cards. It seems well documented by the manufacturer. There is a lot of informations about the beId (Belgian Identity Card) and the ISO smart cards in general. Card Reader driver and applications are available for three main operating systems (MS-Windows, MacOSX and Linux). The sources are available for Linux and it is easy to install the binaries on the latest Ubuntu distributions (since Edgy Eft), one just has to search for 'beid' in Synaptic and select the gui.

The card reader should be able to read other cards...

The (Linux) sources are rather complex and it is difficult to see what's happening.

So came the idea of writing simple programs to explore USB, the card reader and the cards...

The following code is NOT (yet) fool proof. It is more an exploration than a real driver. There should be more checks for EINVALs, some extentions (get the ATR out of the powerup function; allow for more than 64 (?) bytes I/O;...). The aim is to have the more concise and readable code, a working 'exercice' with libusb. The dates of the blog are irrelevant, it is just a way to get the articles in the right order.

Notice that I put a new version of the program on GitHub : Beid2html (30Jan2015). It uses an USB/CCID class device : The Digipass-870 from VASCO proposed by the Belfius bank and uses libusb 1.0

2 Comments:

Blogger t-Omicr0n said...

I love it. I'm trying to automate authenticating myself to the KBC Online Banking website, and for that I'm trying to use my OmniKey CardMan 3021 to calculate the correct response to their "challenge". Do you have a nice tar.gz of your code somewhere ? Thanks, keep blogging !

6/10/2010 11:21:00 PM  
Blogger xofc said...

The whole code is on the last page of the blog (about 300 'C' lines)

or http://users.skynet.be/chricat/ci2html.tgz

xof_at_skynet.be

6/11/2010 10:41:00 AM  

Enregistrer un commentaire

<< Home