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

后端 未结 3 1045
我在风中等你
我在风中等你 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:14

    This is client code, right? And you're accessing an HTTPS url, aren't you? I think the problem is with the server certificate, which the client-side TLS stack cannot validate. When you connect to that URL via browser, does it work smoothly or do you see a warning on certificate mismatch?

提交回复
热议问题