<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Smartcard on Details...</title>
    <link>https://www.deepreflect.net/tags/smartcard/</link>
    <description>Recent content in Smartcard on Details...</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2003 - 2026 Leonardo Rizzi</copyright>
    <lastBuildDate>Tue, 30 Jun 2026 03:28:29 +0200</lastBuildDate>
    <atom:link href="https://www.deepreflect.net/tags/smartcard/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Omikey Cardman 4040 - Linux FC14</title>
      <link>https://www.deepreflect.net/2011/01/23/omikey-cardman-4040-linux-fc14/</link>
      <pubDate>Sun, 23 Jan 2011 18:53:21 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=966</guid> 
      <description>&lt;p&gt;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.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Install the required packages:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;[root@thinkleo1 ~]# yum install pcsc-lite openct opensc&lt;/code&gt;&lt;/p&gt;
&lt;ol start=&#34;2&#34;&gt;
&lt;li&gt;Configure OpenSC&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;With PC/SC cardbus access OpenCT is useless but without that daemon, on every smartcard operational commad you get lot of this erros:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Error: can&#39;t open /var/run/openct/status: No such file or directory&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Then to avoid (openct/opensc/pcscd) conflicts I prefer to disable openct framework like this:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>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.</p>
<ol>
<li>Install the required packages:</li>
</ol>
<p><code>[root@thinkleo1 ~]# yum install pcsc-lite openct opensc</code></p>
<ol start="2">
<li>Configure OpenSC</li>
</ol>
<p>With PC/SC cardbus access OpenCT is useless but without that daemon, on every smartcard operational commad you get lot of this erros:</p>
<p><code>Error: can't open /var/run/openct/status: No such file or directory</code></p>
<p>Then to avoid (openct/opensc/pcscd) conflicts I prefer to disable openct framework like this:</p>
<p>Substitute into /etc/opensc.conf :</p>
<p><code>reader_drivers = openct, pcsc, ctapi;</code></p>
<p>With (if is not present, add this under &ldquo;app default&rdquo; context):</p>
<p><code>reader_drivers = pcsc, ctapi;</code></p>
<p>Stop OpenCT daemon:</p>
<p><code>[root@thinkleo1 ~]# /etc/init.d/openct stop</code></p>
<ol start="3">
<li>Install PC/SC driver</li>
</ol>
<p>Download PC/SC driver for Linux form:</p>
<p><a href="http://www.hidglobal.com/">http://www.hidglobal.com/</a></p>
<p>Actual release is &ldquo;ifdok_cm4040_lnx-2.0.0.tar.gz&rdquo; this file contains a nice installer, but doesn&rsquo;t work under fedora, then proceed manually:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>[root@thinkleo1 ~]# tar -xvf ifdok_cm4040_lnx-2.0.0.tar.gz
</span></span><span style="display:flex;"><span>[root@thinkleo1 ~]# cd ifdok_cm4040_lnx-2.0.0
</span></span><span style="display:flex;"><span>[root@thinkleo1 ifdok_cm4040_lnx-2.0.0]# cp ifdok_cm4040_lnx-2.0.0.so /usr/lib/pcsc/drivers/
</span></span></code></pre></div><p>Create file: /etc/reader.conf.d/cardman4040.conf</p>
<p>With this content (adjust that if you have more that one pcmcia slot) :</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> #
</span></span><span style="display:flex;"><span> # Configuration file for CardMan 4040 smartcard reader.
</span></span><span style="display:flex;"><span> #
</span></span><span style="display:flex;"><span> FRIENDLYNAME            &#34;OMNIKEY CardMan 4040 Socket 0&#34;
</span></span><span style="display:flex;"><span> DEVICENAME              /dev/cmx0
</span></span><span style="display:flex;"><span> LIBPATH                 /usr/lib/pcsc/drivers/ifdok_cm4040_lnx-2.0.0.so
</span></span><span style="display:flex;"><span> CHANNELID               0
</span></span></code></pre></div><p>Now insert the smartcard reader into pcmcia slot and restart pcscd:</p>
<p><code>[root@thinkleo1 ~]# /etc/init.d/pcscd restart</code></p>
<ol start="4">
<li>Test the reader:</li>
</ol>
<p>If all works fine you can get this output:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-gdscript3" data-lang="gdscript3"><span style="display:flex;"><span>[root<span style="color:#960050;background-color:#1e0010">@</span>thinkleo1 <span style="color:#f92672">~</span>]<span style="color:#75715e"># opensc-tool -l</span>
</span></span><span style="display:flex;"><span>  Readers known about:
</span></span><span style="display:flex;"><span>  Nr<span style="color:#f92672">.</span>    Driver     Name
</span></span><span style="display:flex;"><span>  <span style="color:#ae81ff">0</span>      pcsc       OMNIKEY CardMan <span style="color:#ae81ff">4040</span> Socket <span style="color:#ae81ff">0</span> <span style="color:#ae81ff">00</span> <span style="color:#ae81ff">00</span>
</span></span><span style="display:flex;"><span>[root<span style="color:#960050;background-color:#1e0010">@</span>thinkleo1 <span style="color:#f92672">~</span>]<span style="color:#75715e"># </span>
</span></span></code></pre></div><p>Now the reader is ready to use.</p>
]]></content:encoded>
    </item>
  </channel>
</rss>
