title: Mac OS X El Capitan Smart Card Services PKCS#11 Tokend compilation and installation
body: <p>I would like to install PKCS#11 Tokend to my Mac OS X El Capitan (10.11.2) so I can access PKCS#11 enabled devices from Safari.</p>
  
  <p>I downloaded and install Smart Card Services for El Capitan from <a href="https://smartcardservices.macosforge.org/trac/wiki/installers" rel="nofollow">https://smartcardservices.macosforge.org/trac/wiki/installers</a>.</p>
  
  <p>Now I have Tokend installed in /Library/Security/tokend but there is no PKCS11.tokend, there are the following:</p>
  
  <ul>
  <li>BELPIC.tokend</li>
  <li>CAC.tokend</li>
  <li>CACNG.tokend</li>
  <li>JPKI.tokend</li>
  <li>PIV.tokend</li>
  </ul>
  
  <p>So I read on the following site that it should be included, or it can be built and copied to tokend directory to access PKCS#11 libraries stored in /usr/lib/pkcs11 or /usr/local/lib/pkcs11: <a href="http://ludovicrousseau.blogspot.cz/2010/04/free-software-tokend-above-pkcs11-for.html" rel="nofollow">http://ludovicrousseau.blogspot.cz/2010/04/free-software-tokend-above-pkcs11-for.html</a>.</p>
  
  <p>But I am not even able to successfully install <code>darwinbuild</code>.
  Also I don't want to build the whole Smart Card Services solution, I would like to build just PKCS#11.tokend and use it with KeyChain.</p>
  
  <p>The building steps are not very clear for me.</p>
  
  <p>How to do it for El Capitan?
  Or is there any version that is already built and can be used?</p>