“Could not create SSL/TLS secure channel” in an Azure Web Application

前端 未结 1 559
猫巷女王i
猫巷女王i 2021-01-19 04:28

My Azure Web Application needs to connect to various servers (both with and without SSL). This works perfectly as long as I run the application in my local IIS Express or II

相关标签:
1条回答
  • 2021-01-19 05:13

    Perhaps SSL3 or Tls1.0 are not supported? I had a similar issue and after switching to this everything worked:

    ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
    

    You can use ssllabs to test which protocols the server you are trying to connect to uses.

    https://www.ssllabs.com/ssltest/

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