When you start the Tomcat application server, you must specify the location and passphrase of the keystore and truststore files.
One way to set these system properties is to use the java command from the command line.
A second method is to set the command arguments to the value of the Tomcat CATALINA_OPTS environment variable. This variable provides Java runtime options when the server is started.
You can set the CATALINA_OPTS environment variable in an existing Tomcat startup file (.bat on Windows or .sh on UNIX) or create a wrapper file that sets the variable and then calls the Tomcat startup file.
@echo off setlocal set CLIENT_CERT=C:\Endeca\PlatformServices\workspace\etc\eneCert.jks set CATALINA_OPTS=-Djavax.net.ssl.keyStore=%CLIENT_CERT% -Djavax.net.ssl.keyStorePassword=endeca -Djavax.net.ssl.trustStore=%CLIENT_CERT% -Djavax.net.ssl.trustStorePassword=endeca cd c:\tomcat\bin call c:\tomcat\bin\startup.bat endlocal
Note that the values for the set CATALINA_OPTS command are on separate lines for ease of reading, but should be on the same command line in the batch file.