Error: C# The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel

后端 未结 3 1039
我在风中等你
我在风中等你 2021-02-03 20:38

I\'m trying to make a request via SSL. The certificate is already installed on the machine and it works via browser.

I am using this request:

System.Text         


        
3条回答
  •  梦谈多话
    2021-02-03 21:18

    I solved the problem with this:

    ServicePointManager.ServerCertificateValidationCallback = new        
    RemoteCertificateValidationCallback
    (
       delegate { return true; }
    );
    

提交回复
热议问题