aspose file tools
The moose likes Web Services and the fly likes How can i load keystore using java api Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How can i load keystore using java api" Watch "How can i load keystore using java api" New topic
Author

How can i load keystore using java api

Amr k. Saleh
Greenhorn

Joined: Aug 23, 2010
Posts: 26
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

Joined: Mar 24, 2008
Posts: 3670

Have a look at this on how to store, you can have a hint from that perhaps.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
 
subject: How can i load keystore using java api
 
Similar Threads
modify keystore
SSL Cert Error - Mismatched Address
case of "UnrecoverableKeyException: DER input, Integer tag error"?
keystore problem
how do i programmatically create a keystore and import my certificate into it?