Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How can i load keystore using java api

 
Amr k. Saleh
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I'm using glassfish application server, how can i load the keystore ?

KeyStore keystore = KeyStore.getInstance("JKS");
InputStream is = new FileInputStream(new File("???"));
keystore.load(is, "changeit".toCharArray());

what is the path should i provide for the File ? i want to use the default keystore


thanks in advance,
Amr Khaled
 
Vijitha Kumara
Bartender
Posts: 3913
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at this on how to store, you can have a hint from that perhaps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic