I think I might have found how at least one way to do this. Someone please tell me if there is a better way to handle this. In the Tomcat \ bin folder, where the catalina.bat file, I created the setenv.bat file, and there I declared two properties of Java properties for:
set JAVA_OPTS="-Djavax.net.ssl.trustStore=C:\path\to\keystore.key" "-Djavax.net.ssl.trustStorePassword=************"
Apparently, when Tomcat is running, it initiates the catalina.bat file, and the catalina.bat file determines whether the setenv.bat file exists, and if it runs this file to set Java parameters.
Someone again, please correct me if I am wrong and advise you to do this best. Although, apparently, where Tomcat is configured as a Windows service, the parameters listed above are entered through tomcatXw.exe to launch the Tomcat console and select the Java tab.
Ajfarroll
source share