SSL Webservice: Could not create SSL/TLS secure channel

后端 未结 3 1367
梦如初夏
梦如初夏 2021-02-08 11:30

My C# .net application is using a HTTPS webservice. As the cerificate now is about to expire, I\'m trying to update it with a new one that I have been given (a .jks file that I\

3条回答
  •  攒了一身酷
    2021-02-08 11:53

    Late reply, but i got stuck in the same problem and the following change fixed the issue for me. Try changing the line ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3; with the one below - ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;

    P.S - I am using .Net framework 3.5 in my application.

提交回复
热议问题