如何在使用Sonarqube时绕过SSL验证

如何在使用Sonarqube时绕过SSL验证,sonarqube,sonarqube-scan,Sonarqube,Sonarqube Scan,我有一个sonarqube MS构建扫描仪无法连接到sonarqube服务器: C:\ws\develop>SonarQube.Scanner.MSBuild.exe begin /k:aaaa /n:bbb /v:4.0.0.13063 /d:sonar.host.url=https://sonarqube.aaa.bbb /d:sonar.login=****** /d:sonar.cs.nunit.reportsPaths=TestResult.xml /d:sonar.cs.dot

我有一个sonarqube MS构建扫描仪无法连接到sonarqube服务器:

C:\ws\develop>SonarQube.Scanner.MSBuild.exe begin /k:aaaa /n:bbb /v:4.0.0.13063 /d:sonar.host.url=https://sonarqube.aaa.bbb /d:sonar.login=****** /d:sonar.cs.nunit.reportsPaths=TestResult.xml /d:sonar.cs.dotcover.reportsPaths=dotcover.html 

WARNING: ------------------------------------------------------------------------

This executable is deprecated and may be removed in next major version of the SonarScanner for MSBuild. Please use 'SonarScanner.MSBuild.exe' instead.

------------------------------------------------------------------------

SonarScanner for MSBuild 4.4.2

Using the .NET Framework version of the Scanner for MSBuild

Default properties file was found at C:\Tools\SonarQubeScanner\SonarQube.Analysis.xml

Loading analysis properties from C:\Tools\SonarQubeScanner\SonarQube.Analysis.xml

Pre-processing started.

Preparing working directories...

14:40:23.762  Updating build integration targets...

14:40:23.774  Fetching analysis configuration settings...

14:40:23.855  Failed to request and parse 'https://sonarqube.aaa.bbb/api/server/version': The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

14:40:23.856  A server certificate could not be validated. Possible cause: you are using a self-signed SSL certificate but the certificate has not been installed on the client machine. Please make sure that you can access https://sonarqube.aaa.bbb without encountering certificate errors.

14:40:23.857  Pre-processing failed. Exit code: 1

script returned exit code 1

有没有办法禁用此SSL检查?证书将无效(它在我们的域上有效,但由于it策略,此代理不在域中)

Hello J4N。你能在那台机器上安装有效的证书吗?