certificate problem in http client in windows server 2012

Viewed 18

Using classes WebClient, HttpClient, WebRequest, etc., it is not possible to send requests to sites like as http://www.irmp3.ir and http://www.resanejavan.com. This problem can be solved by adding the code ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; It is solved in Windows 10, but it still remains in Windows Server 2012. I recently tried using curl to request the above sites, it failed on the first try but when I used the "ca-bundle.crt" file, the problem was solved. I wanted to use curl for http requests in c#, but I found that HttpClient is faster than curl for delayed requests. Please guide me, I have been facing this problem for more than 2 years. I have read all the posts about this but still no results

0 Answers
Related