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!

Uninitialized keystore

843810Apr 27 2004 — edited Jun 27 2008
Hi friends, i am trying to write a program that create a key store. I write this:
....
KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());
      
keystore.setKeyEntry(alias, privateKey, keyPass.toCharArray(), chain);
....
I get the Uninitialized keystore exception, my question is how to initialise the key store? Thank you for reply.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2008
Added on Apr 27 2004
3 comments
4,309 views