Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Having troble with JKS/JCEKS and providers

843811Nov 18 2001 — edited Nov 22 2001
Trying 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2001
Added on Nov 18 2001
1 comment
221 views