Import an SSL Certificate
You can import an SSL certificate into the Java certificate TrustStore to enable SSL.
Before you begin:
You have obtained an SSL certificate from your browser:
- Obtain a certificate using Chrome
- Obtain a certificate using Internet Explorer
- Obtain a certificate using Firefox
To complete this task:
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.
yto trust the certificate.
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.
Optionally, you can list the contents of the
cacertsfile to verify a successful import by entering this 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