How to make JVM search for .keystore file in user specified location instead of deafult location (user's home directory)?
Asked
Active
Viewed 6,549 times
1
-
http://stackoverflow.com/questions/5871279/java-ssl-and-cert-keystore – vikingsteve May 10 '13 at 10:33
-
Is this question about the `keytool` command? – Duncan Jones May 10 '13 at 10:33
-
Keytool is used to create keystore files. – Gopakumar N G May 10 '13 at 10:37
2 Answers
2
If you are talking about SSL then
-Djavax.net.ssl.trustStore=path

Evgeniy Dorofeev
- 133,369
- 30
- 199
- 275
-
I am trying to build a project using ANT build, but the JVM looks for the .keystore file for the project in C:\Users\Gopakumar and not in the project directory. I want to make JVM looks for the keystore file in my project directory. – Gopakumar N G May 10 '13 at 11:07
-
1
1
Since you're doing an ant build you should just parameterise the SignJar
task by setting the keystore
parameter.

rxg
- 3,777
- 22
- 42