We have hosted Sonarqube 9.6 in Azure Kubernetes and is using internal certificate. Till few days back it was working good and suddenly we are getting " Could not create SSL/TLS secure channel" error. None of the certificate we are using have expired and there was no change in any configuration.
Issue is only when we use “Integrate with msbuild” option in azure task. Standalone scanner is not giving any error. All build agents are internally hosted.
We have set variable “NODE_EXTRA_CA_CERTS” to point to pem file containing internal, intermediate and root certificates.
We are using latest version of azure task for initiating ‘integration with msbuild’ scan.
Below mentioned is the error in pipeline on enabling debug option in pipeline.
Note: I can confirm that Sonarqube URL is accessible from server and there is no firewall issue
10:19:16.999 Downloading from https://XXXXXXXXX.com/api/server/version...
##[error]10:19:17.03 Unable to connect to server. Please check if the server is running and if the address is correct. Url: 'https://XXXXXXXXXXXXXX.com/api/server/version'.
##[debug]Processed: ##vso[task.logissue type=error;]10:19:17.03 Unable to connect to server. Please check if the server is running and if the address is correct. Url: 'https://XXXXXXXXXXXXX.com/api/server/version'.
10:19:17.03 Unable to connect to server. Please check if the server is running and if the address is correct. Url: 'https://XXXXXXXXXXXX.com/api/server/version'.
10:19:17.03 System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.Http.HttpClientHandler.GetResponseCallback(IAsyncResult ar)
##[error]10:19:17.03 An error occured while querying the server version! Please check if the server is running and if the address is correct.
##[debug]Processed: ##vso[task.logissue type=error;]10:19:17.03 An error occured while querying the server version! Please check if the server is running and if the address is correct.
10:19:17.03 An error occured while querying the server version! Please check if the server is running and if the address is correct.
##[error]10:19:17.03 Pre-processing failed. Exit code: 1
##[debug]Processed: ##vso[task.logissue type=error;]10:19:17.03 Pre-processing failed. Exit code: 1
10:19:17.03 Pre-processing failed. Exit code: 1