Thoughts that's escape, only details.

Omikey Cardman 4040 – Linux FC14

In this post I describe how to get works OMNIKEY Cardman 4040, a pcmcia smartcard reader/writer under Linux Ferdora 14 using manufacturer PC/SC driver.

1. Install the required packages:

[[email protected] ~]# yum install pcsc-lite openct opensc

2. Configure OpenSC

With PC/SC cardbus access OpenCT is useless but without that daemon, on every smartcard operational commad you get lot of this erros:

Error: can't open /var/run/openct/status: No such file or directory

Then to avoid (openct/opensc/pcscd) conflicts I prefer to disable openct framework like this:

Substitute into /etc/opensc.conf :

reader_drivers = openct, pcsc, ctapi;

With (if is not present, add this under “app default” context):

reader_drivers = pcsc, ctapi;

Stop OpenCT daemon:

[[email protected] ~]# /etc/init.d/openct stop

3. Install PC/SC driver

Download PC/SC driver for Linux form:


Actual release is “ifdok_cm4040_lnx-2.0.0.tar.gz” this file contains a nice installer, but doesn’t work under fedora, then proceed manually:

[[email protected] ~]# tar -xvf ifdok_cm4040_lnx-2.0.0.tar.gz
[[email protected] ~]# cd ifdok_cm4040_lnx-2.0.0
[[email protected] ifdok_cm4040_lnx-2.0.0]# cp ifdok_cm4040_lnx-2.0.0.so /usr/lib/pcsc/drivers/

Create file: /etc/reader.conf.d/cardman4040.conf

With this content (adjust that if you have more that one pcmcia slot) :

# Configuration file for CardMan 4040 smartcard reader.
FRIENDLYNAME "OMNIKEY CardMan 4040 Socket 0"
DEVICENAME /dev/cmx0
LIBPATH /usr/lib/pcsc/drivers/ifdok_cm4040_lnx-2.0.0.so

Now insert the smartcard reader into pcmcia slot and restart pcscd:

[[email protected] ~]# /etc/init.d/pcscd restart

4. Test the reader:

If all works fine you can get this output:

[[email protected] ~]# opensc-tool -l
Readers known about:
Nr. Driver Name
0 pcsc OMNIKEY CardMan 4040 Socket 0 00 00
[[email protected] ~]#

Now the reader is ready to use.

Category: Linux

Tagged: , , , , , , , , ,

Leave a Reply

You must be logged in to post a comment.