Inumedia / SlackAPI

.NET Implementation of the Slack team communication platform API.
MIT License
452 stars 243 forks source link

TLS 1.2 #218

Closed Andrew-EDSL closed 4 years ago

Andrew-EDSL commented 4 years ago

The HTTPWebRequest by default seems to be using TLS 1 TLS1.1 which is no longer supported.

Setting the security protocol in the same domain as the SlackTaskClient is created seems to solve the issue.

System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;

Inumedia commented 4 years ago

FYI, this has been pushed to NuGet as version 1.1.6