My application hosted in Azure AKS, My all also got logic to call some external API frequently.
In my local i don’t face any issue to call the external API,
but, Getting below error while call api from inside Azure AKS
https:///connect/token
The SSL connection could not be established
Based on some sugestion, I added below piece of code, but not working.
HttpClientHandler clientHandler = new HttpClientHandler();
clientHandler.ServerCertificateCustomValidationCallback = (sender, cert, chain, sslPolicyErrors) => { return true; };
_client = new HttpClient(clientHandler);