Importing the Certificate to the Java Home for the Scan Agent
The following steps describe how to import the exported certificate to the Java home directory for the Code Insight scan agent.
To import the certificate for the Code Insight agent, do the following:
-
Ensure that the exported certificate is in a location accessible by the machine where the Code Insight scan agent plugin is installed.
-
Verify the Java home location of the scan agent. (If necessary, use the instructions specific to your CI tool to determine the path.)
-
From the command line, navigate to the scan agent’s Java home location. (On a Linux machine, enter
echo $JAVA_HOME.) -
Go to the
bindirectory of the scan agent’s Java home directory, and run the following command to import the Code Insight certificate to thecacertsfile.keytool -import -file <path_to_certificate/<codeinsight_certificate_name>.cer> -alias <ALIAS> -keystore ../lib/security/cacerts -storepass -
Restart the agent plugin.