Step 1: Enable Tomcat Vault for Use by Tomcat
The Tomcat Vault jar file and scripts are already installed with Code Insight. The following procedure enables the Tomcat Vault utility for use by Tomcat to manage the password vault on the current Linux or Windows instance.
To enable Tomcat Vault for use by Tomcat, follow this procedure:
- Navigate to the
/tomcat/conf/catalina.propertiesfile in your Code Insight installation folder, and add the following lines:-
org.apache.tomcat.util.digester.PROPERTY_SOURCE=org.apache.tomcat.vault.util.PropertySourceVault -
org.apache.tomcat.util.digester.REPLACE_SYSTEM_PROPERTIES=true -
This code loads the password vault at the startup of the Code Insight Core Server or Scan Server, using the configuration information you will define in Step 3: Initialize the Password Vault.
-
- (On a Linux instance only) Navigate to the
/tomcat/libdirectory in your Code Insight installation folder, and execute the following command to obtain the permissions needed to accesstomcat-vault.jar:chmod 775 tomcat-vault.jar - Navigate to the
/tomcat/bindirectory in your Code Insight installation folder. - (On a Linux instance only) Execute the following command to obtain the permissions needed to access the
vaultscript:chmod 775 vault.sh - Open
vault.sh(on Linux) orvault.bat(on Windows) for editing. - Update the
JAVA_HOMEparameter with the absolute path of the JRE used by Code Insight, and then save the file.-
If you are using the JRE shipped with Code Insight, update the parameter with the value shown. (This value is the default when Code Insight is shipped.)
-
In vault.sh on a Linux machine:
-
export JAVA_HOME=
../../jre -
In vault.bat on a Windows machine:
-
set JAVA_HOME=``..\..\jre -
If you are not using the JRE shipped with Code Insight, replace the parameter’s default value with the absolute path to the system JRE.
-