Failure on HttpWebrequest with inner exception Authentication failed because the remote party has closed the transport stream

后端 未结 3 593
一个人的身影
一个人的身影 2020-12-16 10:36

Using C#, .Net 4.5, I\'m trying to send out a web request through HttpWebRequest on a remote server. Please see the code below. I tried most of the solutions suggested by s

3条回答
  •  粉色の甜心
    2020-12-16 11:11

    I just want to share that this issue has already been resolved.

    I just modified the part of the code where I set the security protocol before issuing the web request.

    From:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
    

    To:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls;
    

    As it turned out, vCenter 5.5 uses TLS as its SSL protocol in its configuration. I hope people may find this helpful when they encounter this same issue.

提交回复
热议问题