ePass2000 token + Sun PKCS#11 JCE provider
Hello,
I am trying to programatically control ePass2000 USB crypto token: http://www.ftsafe.com/products/viewproduct.php?p=epass2k
Unfortunately, I am having serious problems communicating with
ePass2000 token from Java. I have found no documentation on doing it
properly, but I have tried using Sun's PKCS11 JCE interface and
ep2pk11.dll like this:
in java.security:
security.provider.7=sun.security.pkcs11.SunPKCS11
${java.home}/lib/security/pkcs11.cfg
pkcs11.cfg:
name = epass_token
library = c:\windows\system32\ep2pk11.dll
Now using
keytool -keystore NONE -storetype PKCS11 杔ist
or
keytool -keystore NONE -storetype PKCS11 -storepass 1234 杔ist
should show me list of certificates on token. (if this works, that
means, that JCE API sees the token and can communicate with it). I got only:
keytool error: java.security.ProviderException: Initialization failed
What is a proper way of accessing and using ePass2000 from Java?
Does the error mean, that there's something wrong with the dll? The dll itself
works from firefox as PKCS#11 provider, so I believe it should work with Java
too. I am using Java 1.5.0_06.
If anyone has played with this or similiar token from Java, I'd be glad to hear
about your experiences. Right now, I can only try to write my own JNI wrapper for
the native library :(.
Juraj.

