title: eToken java keytool certificates
body: <p>I'm using eToken in Linux and I need to view certificates stored on eToken in JAVA. I have been searching for tools and I found keytool, but If I use this howto, keytool shows me that there is 0 certs.</p>
  
  <p>in <b>keytool-etoken.cfg</b> I have:</p>
  
  <pre><code>  name = eToken
    library = /usr/lib/libeTPkcs11.so
  </code></pre>
  
  <p><b>command:</b></p>
  
  <pre><code>keytool -list -keystore NONE -storetype PKCS11 -providerClass sun.security.pkcs11.SunPKCS11  -providerArg keytool-etoken.cfg
  </code></pre>
  
  <p><b>output:</b></p>
  
  <pre><code>Enter keystore password:  
  
  Keystore type: PKCS11
  Keystore provider: SunPKCS11-NSS
  
  Your keystore contains 0 entries
  </code></pre>
  
  <p>What should I do to see and use certs on eToken? In Firefox or Chrome it works great.</p>