API GET '/api/server/version' failed, error was: {"code":"SELF_SIGNED_CERT_IN_CHAIN"}

We are using SonarQube version v8.9.5 and running with OpenJDK11. We are trying to integrate SonarQube and Azure DevOps (SaaS). A new agent server was provisioned and installed AzDo agents and along with that we also installed Java 8u202 and imported the certs of our SonarQube using keytool.

We imported the certs to cacerts in jre/jdk/jks still we are hitting the same error. Also the environment variable NODE_EXTRA_CA_CERTS was set and tried pointing to .pem/.cer/.crt file. Nothing worked.

We went through all the community post and none of the resolution worked which was saying about certs import and NODE_EXTRA_CA_CERTS environment variable.

Can someone please guide us on what we are missing here

Hey there.

Where did you set the NODE_CA_EXTRA_CERTS variable?