Search code examples
javasecuritypasswordskeystorejsse

Read java keystore password from file


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


Solution

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