I have make .net entity framework api project. and i can call it on broserer useing the url normally (ex: https://localhost:44382/product/GetAll)
The i have make MVC project to consume the above APIs, So i run the both projects and instantiate a a request using “HttpClient”
HttpResponseMessage response = client.GetAsync(“https://localhost:44382/product/GetAll”).GetAwaiter().GetResult();
then i meet this error.
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel
remove the ssl cerificate and re-add it again
Eng Bahrawy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.