Unable to get quality gate results over https

We have Jenkins integrated to SonarQube and are able to perform the analysis but unable to get the quality gate results over https
Error:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.build(Unknown Source)
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
Caused: sun.security.validator.ValidatorException: PKIX path building failed
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)

This typically means that https communications within your network requires a root certificate that is not provided by default in the JVM that is running the client, being Jenkins. You’ll have to consult with your network team and get that root certificate and import it into your “cacerts” keystore using “keytool”. There are some details required for the import, but I’d concentrate on finding the root certificate first.

2 Likes

Thanks David for your thoughts,
However, I have already received the root certificate and have added the same to JVM cacerts using keytool.
But the same error is still showing up on the quality gates.