Sonar to Jenkins via SSL

Must-share information (formatted with Markdown):

  • Have SonarQube trust corporate issued SSL certificate installed on our jenkins master node
  • Post here first

Hey there.

You’ll need to adjust the certificates that the JVM running your SonarQube server trusts. Adjusting the truststore to add the certificate and restarting your SonarQube server should resolve the issue.

Hi Colin, thank you for the reply.

One of the challenges preventing the import was identifying what truststore is being used by sonarqube?

We have the following default trsutstores:


/usr/lib/jvm/java-11-openjdk- → /etc/pki/java/cacerts (symlink) → this one has been updated, but it did not make a difference for us.

Also, from the OS itself, we can curl jenkins master URL without issues or any TLS related warning.
Is there any additional logging we can look at to see what might be going on exactly ?

Hey there.

Can you clarify where exactly you’re receiving the error, and what error you’re receiving? What is trying to get in touch with what, and while doing what (scanning, webhooks, etc.)

  • If you change the certs installed in the JVM running your SonarQube server, the SonarQube server will need to be fully restarted (./ restart)
  • SSLPoke is a useful tool to see if the changes you made to your cert store actually solve the connection issue

Hi Colin,

The resolution was in - Administration part of SonarQube configs → Webhooks, there was a URL to Jenkins that needed to be updated.