Import SSL certificate into JDK
-
Download the certificate as a file:
- Open HTTPS URL in Internet Explorer
- Right-click, Properties, Certificates, Details
- Click "Copy to File.." button
- Follow the wizard through saving as "DER encoded binary X.509"
-
Add the downloaded certificate into JDK with the following command:
%JAVA_HOME%/bin/keytool -keystore %JAVA_HOME%/jre/lib/security/cacerts -import -file certFile
- Default keystore password:
changeit
- Default keystore password: