Import a Certificate

Veracode Integrations Security and Troubleshooting

After you obtain a certificate, import it into the Java certificate TrustStore.

  1. Open a command-line window as an administrator.
  2. Navigate to the %JAVA_HOME% directory that your Veracode plugin is using.
  3. Run this command to import the certificate:
    keytool -importcert -file C:\temp\example.cer -keystore lib\security\cacerts -alias sslinspection 
    Enter keystore password:
  4. Enter the keystore password. The default is changeit.
    A confirmation message displays informing you the certificate is now in the keystore.
    Trust this certificate? [no]: y
  5. Enter y to trust the certificate.
    Certificate was added to keystore     
    After installing your certificate, you may need to restart the IDE or CI/CD where the plugin is running for the changes to take effect.
  6. Optionally, you can list the contents of the cacerts file to verify a successful import by entering the following command from the %JAVA_HOME% directory. This command outputs a text file with the full contents:
    keytool.exe -list -v -keystore lib\security\cacerts > C:\temp\cacerts.txt