keytool error: java.security.ProviderException: Initialization failed
843811Jul 19 2005 — edited Jul 19 2005hi
referring to the forum http://forum.java.sun.com/thread.jspa?threadID=506442&tstart=120
i tried to run
keytool -keystore NONE -storetype PKCS11 -list
but the error
keytool error: java.security.ProviderException: Initialization failed
comes out instead.. this is what I've done.
1) installed the JCE unrestricted policy files
2) created PKCS11.cfg files which contains
name = rainbow_token
library = c:\WINNT\system32\DKCK232.dll
slot=3
i put the file under drive c, which is c:\pkcs11.cfg
3)edited java.security files by adding the line security.provider.7=sun.security.pkcs11.SunPKCS11 C:/pkcs11.cfg which resides in the folder C:\Program Files\Java\jdk1.5.0_04\jre\lib\security and C:\Program Files\Java\jre1.5.0_04\lib\security
then i tried running the keytool program above but the error comes out. If I omit the line 'slot=3' from the PKCS11.cfg file, the error
keytool error: java.security.KeyStoreException: PKCS11 not found
would come out instead.
anyone knows where did i messed up?
any helps are greatly appreciated. thanks in advance