After you obtain a certificate, import it into the Java certificate TrustStore.
- Open a command-line window as an administrator.
- Navigate to the %JAVA_HOME% directory that your Veracode plugin is using.
Run this command to import the certificate:
keytool -importcert -file C:\temp\example.cer -keystore lib\security\cacerts -alias sslinspection Enter keystore password:
Enter the keystore password. The default is
A confirmation message displays informing you the certificate is now in the keystore.
Trust this certificate? [no]: y
Enter y to trust the certificate.
Certificate was added to keystoreAfter installing your certificate, you may need to restart the IDE or CI/CD where the plugin is running for the changes to take effect.
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