1

I'm using VM-Args to configure a keystore in Java:

java -Djavax.net.ssl.keyStore=myJks -Djavax.net.ssl.keyStorePassword=secret

The problem is that the password is not allowed to be visible in the arguments of this java call (my client's requirement). Is there any way how I can define the parameters in a seperate file? Like -Xoptionsfile= in IBM JVM...

3
  • Just stick it in a .prooerties file and set this system property from code after reading it. Commented May 30, 2016 at 16:45
  • Best way would be to not change the code and keep the ssl logic out of the program... Commented May 30, 2016 at 17:21
  • 1
    You can't have it both ways. Commented May 30, 2016 at 22:30

1 Answer 1

1

As EJP mentioned, it seems that there is no way to do this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.