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

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

    Make sure your certificate is properly trusted. Has the root certificate been added to the correct certificate store (Trusted Root CA's on Local Machine)?

    I encountered this error when the (own made) root certificate for a (self signed) certificate had been added to the Trusted Root CA's for Current User). Moving the root cert to the Root CA store on Local Machine solved my issue.

提交回复
热议问题