Sonarqube certificate issue

Hi ,
I am facing issue while building application for dotnet with “framewwork 4.8”

Using below command
SonarScanner.MSBuild.exe begin /k:“project-key” /d:sonar.token=“” /d:sonar.host.url=“http://localhost:9000
MSBuild.exe <path to project file or .sln file> /t:Rebuild
SonarScanner.MSBuild.exe end /d:sonar.token=“”

I am running sonarqube in openshift and trying to run sonarscan from windows vm
Is there any way to provide certificate or skip certificate

I am facing below certificate

[Step 7/8] ERROR: SonarQube server [https://sonar-host] can not be reached
[Step 7/8] 15:44:30.222 ERROR: Error during SonarQube Scanner execution
[Step 7/8] org.sonarsource.scanner.api.internal.ScannerException: Unable to execute
[Step 7/8] SonarQube
[Step 7/8]     at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$crea
[Step 7/8] teLauncher$0(IsolatedLauncherFactory.java:85)
[Step 7/8]     at java.security.AccessController.doPrivileged(Native Method)
[Step 7/8]     at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLaunc
[Step 7/8] her(IsolatedLauncherFactory.java:74)
[Step 7/8]     at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.createLaunc
[Step 7/8] her(IsolatedLauncherFactory.java:70)
[Step 7/8]     at
[Step 7/8] org.sonarsource.scanner.api.EmbeddedScanner.doStart(EmbeddedScanner.java:167)
[Step 7/8]     at
[Step 7/8] org.sonarsource.scanner.api.EmbeddedScanner.start(EmbeddedScanner.java:113)
[Step 7/8]     at org.sonarsource.scanner.cli.Main.execute(Main.java:73)
[Step 7/8]     at org.sonarsource.scanner.cli.Main.main(Main.java:61)
[Step 7/8] Caused by: java.lang.IllegalStateException: Fail to get bootstrap index from
[Step 7/8] server
[Step 7/8]     at org.sonarsource.scanner.api.internal.BootstrapIndexDownloader.getIndex(B
[Step 7/8] ootstrapIndexDownloader.java:42)
[Step 7/8]     at org.sonarsource.scanner.api.internal.JarDownloader.getScannerEngineFiles
[Step 7/8] (JarDownloader.java:58)
[Step 7/8]     at org.sonarsource.scanner.api.internal.JarDownloader.download(JarDownloade
[Step 7/8] r.java:53)
[Step 7/8]     at org.sonarsource.scanner.api.internal.IsolatedLauncherFactory.lambda$crea
[Step 7/8] teLauncher$0(IsolatedLauncherFactory.java:76)
[Step 7/8]     ... 7 more
[Step 7/8] Caused by: javax.net.ssl.SSLHandshakeException:
[Step 7/8] sun.security.validator.ValidatorException: PKIX path building failed:
[Step 7/8] sun.security.provider.certpath.SunCertPathBuilderException: unable to find
[Step 7/8] valid certification path to requested targethBuilderException: unable to find
[15:44:31][Step 7/8] valid certification path to requested target

How could I resolve this? Thanks you!

Hey there.

Here are the docs!