SSL Webservice: Could not create SSL/TLS secure channel

后端 未结 3 1372
梦如初夏
梦如初夏 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:42

    Problem solved, Seems a Intermediate Certificate was missing, Imported it into Intermediate Certificates in MMC, and all was good :-)

    0 讨论(0)
  • 2021-02-08 11:53

    Not much can be extracted from the log, but...

    Google-fu yields the following result: 0x80090010 is most likely a certificate access error.

    From that, with high level of probability I conclude you need to set permissions for your SSL certificate private key - so that IIS can access it. See: http://www.dotnetnoob.com/2011/01/how-to-give-iis-access-to-private-keys.html

    Similar question with another option: The request was aborted: Could not create SSL/TLS secure channel

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题