SonarScanner error: unable to find valid certification path to requested target

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Enterprise Edition-Version 7.6 (build 21501)
    sonar-scanner-cli-3.3.0.1492
  • what are you trying to achieve
    Be able to run SonarGo from our computers
  • what have you tried so far to achieve this
    Installed SonarScanner in our computers and ran a scan

A colleague and I are having error when we run sonarscanner. Here are the errors:

"
ERROR: Error during SonarQube Scanner execution
ERROR: Unable to execute SonarQube
ERROR: Caused by: Fail to get bootstrap index from server
ERROR: Caused by: sun.security.validator.ValidatorException: PKIX path building
failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to fi
nd valid certification path to requested target
ERROR: Caused by: PKIX path building failed: sun.security.provider.certpath.SunC
ertPathBuilderException: unable to find valid certification path to requested ta
rget
ERROR: Caused by: unable to find valid certification path to requested target
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging
"

When searching the internet, it appears the error has something to do with SSL certificate.
I am not familiar with SSL certificate.

What should we do to resolve this issue?

Thanks

Quinten

1 Like