eclipsesonarqubesonarlint

Eclipse SonarLint: Connect to SonarQube via HTTPS - PKIX path building failed


I'm trying to connect my Eclipse SonarLint plugin to my SonarQube server (that uses HTTPS) but I cannot reach the server due to certificate problems.

When I try to connect to the SonarQube server (using the SonarLint plugin's wizard) I get the following error message:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

sonarlint wizard

What I've tried so far:


Solution

  • This seems to be an Eclipse issue. After installing a clean, new Eclipse (same version that I used before) it works without any problems. I just needed to import the certificates into the JRE that was mentioned in the eclipse.ini file and it worked.

    I don’t realy know why this solved the issue, but it seems to be reproducable.