# API GET '/api/server/version' failed when connecting to https sonarqube

**URL:** <https://community.sonarsource.com/t/api-get-api-server-version-failed-when-connecting-to-https-sonarqube/38095>\
**Category:** SonarQube Server / Community Build\
**Tags:** ssl, azuredevops-services\
**Created:** [February 4, 2021, 8:25pm UTC](https://community.sonarsource.com/t/api-get-api-server-version-failed-when-connecting-to-https-sonarqube/38095 "2021-02-04T20:25:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trana](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@trana](https://community.sonarsource.com/u/trana)\
**Post date:** [February 4, 2021, 8:25pm UTC](https://community.sonarsource.com/t/api-get-api-server-version-failed-when-connecting-to-https-sonarqube/38095/1 "2021-02-04T20:25:39Z")

</div>

We’ve trying to run the job having code analysis on Sonarqube step in the MSBuild definition configured with the Sonarqube plugin (which points to the [https://sq1](https://sq1). url, but keep getting this SQ error below.  
**##[error][SQ] API GET ‘/api/server/version’ failed, error was: {“code”:“UNABLE\_TO\_GET\_ISSUER\_CERT\_LOCALLY”}**

By searching online for resolution, we followed this technote and set the sys env variable to point to the ssl cert pem file exported from the windows browser, but still no vail. Any help is really appreciated!

> **[SonarQube mit Self-Signed Certificate unter Windows - AIT GmbH & Co. KG](https://www.aitgmbh.de/blog/tfs-devops/sonarqube-mit-self-signed-certificate-unter-windows/)**
>
> Viele Unternehmen nutzen in ihrem internen Netz Self-Signed Certificates und möchten den SonarQube-Server auch damit unter Windows hosten – die Einbindung in den Buildprozess von Azure DevOps bzw. TFS kann jedoch zunächst frustrierend sein. In diesem...

System environment variable added and restart agent service:  
NODE\_EXTRA\_CA\_CERTS c:\agent\node-ca-certmgt\sq1.pem

Also restarted the azure agent after the env variable change above.

If anyone in the community knows how this issue can get resolved, please post back a reply, thank you!
