A server certificate could not be validated.

356 views
Skip to first unread message

sabit...@gmail.com

unread,
Apr 19, 2016, 7:12:48 AM4/19/16
to SonarQube
Hi all,
 
I have installed Sonarqube -5.2 and csharp 5.0 . SSL has been configured through keytool and sonarqube and runner is on the same server.
When I try to analyze through MSBUILD Scanner sonar is throwing below error.   
 
 
Error Log :
 
 
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.
Failed to update the SonarQube Scanner for MSBuild binaries. Check the server url, verify that the C# plugin is correctly installed on the SonarQube server and that the SonarQube server has been restarted.
 
Pre-processing failed. Exit code: 1
 
 

sabit...@gmail.com

unread,
Apr 19, 2016, 7:13:27 AM4/19/16
to SonarQube, sabit...@gmail.com
Let me know how to solve these issues 
 
 

snak...@gmail.com

unread,
Apr 21, 2016, 9:42:56 PM4/21/16
to SonarQube, sabit...@gmail.com
Which Java installation is the sonar-runner (apparently called 'sonar-scanner' now) using?
Maybe it's not the same that had the keytool configured.

Does the default keystore contain the trusted certificate or is it a custom one?

Hope this helps...

jeroen...@centric.nl

unread,
Apr 22, 2016, 1:18:29 AM4/22/16
to SonarQube, sabit...@gmail.com
SonarQube 5.5 will drop this option. Use the recommended reverse proxy.

Op dinsdag 19 april 2016 13:12:48 UTC+2 schreef sabit...@gmail.com:

snak...@gmail.com

unread,
Apr 23, 2016, 11:54:51 AM4/23/16
to SonarQube, sabit...@gmail.com, jeroen...@centric.nl
The problem seems to be that your java installation does not trust the self-signed certificate by default.

Even with the reverse proxy nothing would really change, other than you'd be able to access the http port directly, which you probably can now anyways.
Check if you can access it directly via http://localhost(:port?).

Or you could add your certificate to the default trusted keystore for your java installation.

sabito...@gmail.com

unread,
Jan 1, 2018, 12:09:13 PM1/1/18
to SonarQube
Reply all
Reply to author
Forward
0 new messages