| 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
|
|
|