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:
[root@thinkleo1 ~]# 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:
[root@thinkleo1 ~]# /etc/init.d/openct stop
3. Install PC/SC driver
Download PC/SC driver for Linux form:
http://www.hidglobal.com/
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:
[root@thinkleo1 ~]# tar -xvf ifdok_cm4040_lnx-2.0.0.tar.gz
[root@thinkleo1 ~]# cd ifdok_cm4040_lnx-2.0.0
[root@thinkleo1 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
CHANNELID 0
Now insert the smartcard reader into pcmcia slot and restart pcscd:
[root@thinkleo1 ~]# /etc/init.d/pcscd restart
4. Test the reader:
If all works fine you can get this output:
[root@thinkleo1 ~]# opensc-tool -l
Readers known about:
Nr. Driver Name
0 pcsc OMNIKEY CardMan 4040 Socket 0 00 00
[root@thinkleo1 ~]#
Now the reader is ready to use.