SSL Error while curling sonarqube results

Hi. I’m running SonarQube 8.9.1 Community Edition using the 4.3 Scanner. My sonar scan runs successfully, but for some reason when I try to curl results I am getting an ssl error in my Jenkins pipeline. When I run the curl command directly in the server, it works exactly as expected, yet it fails in the pipeline. Any help would be greatly appreciated!

  • curl -u : ‘sonarqube url’
    % Total % Received % Xferd Average Speed Time Time Time Current
    Dload Upload Total Spent Left Speed

    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
    curl: (60) SSL certificate problem: self signed certificate in certificate chain
    More details here: curl - SSL CA Certificates

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.

Hi,

Do you have multiple Java installations on the server? It seems that perhaps your commandline curl is using one with the cert installed and your pipeline is using another…?

 
Ann