Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dineshr93/e9b6ce15763d1e398c8b8cea9cfef526 to your computer and use it in GitHub Desktop.
Save dineshr93/e9b6ce15763d1e398c8b8cea9cfef526 to your computer and use it in GitHub Desktop.
Steps to clear the SSL certificate errors
Steps to clear the SSL certificate errors
1. Go to cacert location. (C:/Program Files/Java/jre7/lib/security/cacerts)
2. Dump the info in cacerts into java_cacerts text file using below command.
keytool -list -v -keystore cacerts > java_cacerts.txt
3. Get the site's certificate, serial number and Issuer in the details tab and search if it is already present. (Click the lock icon beside your address -> more information -> view certificate)
4. If not export the certificate available in the details tab in a .der format(X.509 Certificate).
5. Then import that der into the java cacerts by using below command.
keytool -import -alias example -keystore cacerts -file ex.der
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment