RamblingCookieMonster / PSSlack

PowerShell module for simple Slack integration
http://ramblingcookiemonster.github.io/PSSlack/
MIT License
273 stars 74 forks source link

[Question] TLS 1.2 support #98

Closed lia-cha-avalara closed 4 years ago

lia-cha-avalara commented 4 years ago

are there plans to support TLS 1.2? I used this module for a slack app and now Slack is telling me tls 1.0 and 1.1 will be deprecated in 2020 and any apps using those protocol will fail when querying their api.

scrthq commented 4 years ago

@lia-cha-avalara The module doesn't specify usage of a specific TLS version. You can force TLS 1.2 usage by including the following above any web cmdlet calls (e.g. any of the functions in this module) by including the following before any of those:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Wouldn't be a bad idea to include the above in the module though to cover bases

lia-cha-avalara commented 4 years ago

yeah i did that but slack is still complaining that it's not a tls1.2 compliant app

youmk commented 4 years ago

Today, in 2020/02/20, slack is going to do a 24-hour test deprecation of TLS 1.0 and 1.1. So, my some of my slack app were affected this.

But, I added this line to my powershell scripts in according this advice, that apps became to work well.

RamblingCookieMonster commented 4 years ago

1.0.2 now has [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 included in the psm1, which will add tls12 if it's not already included (additive, vs. replacing any existing setting with Tls12)