Having troble with JKS/JCEKS and providers
843811Nov 18 2001 — edited Nov 22 2001Trying to request aKeyStore to get a private key which is already there but I'm getting an exception when I try to run.
This special part of the code looks like this:
KeyStore ks = KeyStore.getInstance("JKS, SUN");
The exception I'm getting looks like this:
"java.security.KeyStoreException: JKS, SUN not found
at java.security.KeyStore.getInstance"
Tried with JCEKS and SunJCE recomended by Flanagan in "Java in a Nutshell" (O'reilly) but I'm getting the same exception.
I'm currently running the j2sdk1.4.0-beta3 with JCE integrated because I had some problems getting JCE1.2.1 to work properly as an installed extension.
Is my problem related to keylength and export restrictions or does it have something to do with granting permissions to the provider? As I'm running with JCE integrated I haven't touched the policyfiles.
If you know anything about this please tell me.
Best regards Rookie in security