Skip to main content

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:

  1. Ensure that the exported certificate is in a location accessible by the machine where the Code Insight scan agent plugin is installed.

  2. Verify the Java home location of the scan agent. (If necessary, use the instructions specific to your CI tool to determine the path.)

  3. From the command line, navigate to the scan agent’s Java home location. (On a Linux machine, enter echo $JAVA_HOME.)

  4. Go to the bin directory of the scan agent’s Java home directory, and run the following command to import the Code Insight certificate to the cacerts file.

    keytool -import -file <path_to_certificate/<codeinsight_certificate_name>.cer> -alias <ALIAS> -keystore ../lib/security/cacerts -storepass

  5. Restart the agent plugin.