Search code examples
springsslsts-springsourcetoolsuite

Spring Tool Suite can't connect to Update site using SSL (HTTPS)


When try to connect to update sites under help->Install New Software I get:

Unable to read repository at https://dl.google.com/eclipse/plugin/4.4/content.xml. Unable to read repository at https://dl.google.com/eclipse/plugin/4.4/content.xml. sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

I have tried to import the certificate into the truststore as well as set it in the sts.ini file but to no avail.

Any help greatly appreciated!


Solution

  • I encountered a similar issue while trying to add templates to STS (3.6.2). The issue was my organization's usage of an SSL inspection tool that presents its certificate instead of the real one (GitHub.com).

    The solution was to export the SSL inspection's certificate (using IE for example) and add it to the cacerts file. Use this article for the procedure.

    Then update the sts.ini file and add the following lines:

    -Djavax.net.ssl.trustStore=C:\Program Files\Java\jdk1.7.0_07\jre\lib\security\cacerts -Djava.net.ssl.trustStorePassword=changeit

    Finally - restart STS.