I am facing a very similar problem to the one described here - our SonarQube instance refuses to connect to our self-managed instance of Gitlab (which uses a self-signed certificate).
Since our SonarQube deployment is based on docker-compose, I suppose this is an additional complicating factor.
Therefore, could anyone please advise how do I “adjust the truststore to add the certificate” in a “truststore that Java uses” for a SonarQube instance deployed using docker-compose? Naturally, in a way that is persistent across container restarts.
Thank you @DefinitelyNotTobi, your answer helped me progress past the “PKIX path building failed” error.
I missed the “Self Signed Certificates of DevOps platforms” part of the installation instructions FAQ - shame on me To my defense, searching the SonarQube documentation for “self-signed” yields no results.
Of course, immediately after I got stuck on another SSL certificate error (from what I understand so far, connected with the fact that the Gitlab-generated certificates do not have the subjectAltName field populated) - but, I suppose, this is a story for another thread.