Hello, im trying to connect Sonarqube with a an internal gitlab server via ALM integrations(developers edition), but i get the following error
Gitlab API call to [https:/myinternalserver] failed with error message : [PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
My sonarqube is running inside docker container.
I have already imported the server certificate in the Java cacerts but nothing changed.
Im wondering if the problem begins from the container.
Could you please help me to solve this issue?
Hi, you need to double-check that your Gitlab SSL certificate contains exactly the full domain in the subject alternative name field. Wildcards are not supported.
Hi, thanks for the instant response. The subject alternative name field contains the full domain.
I believe that the problem has to do with the cacerts in the docker embedded Java 11.But i’m not sure about that.
Any suggestion?
Hi, with the correct SAN extension and the certificate in the jvm keystore, you should be good. How did you proceed to add the certificate to the jvm keystore?