NickAkincilar / QlikSense-Task-Failure-Email-Alerts

Automated email alerts for failed Qlikse Alerts
29 stars 5 forks source link

Test Connection fails when using exclusive TLS 1.2 #24

Open levi-turner opened 5 years ago

levi-turner commented 5 years ago

Issue: When testing the connection on a server which only TLS 1.2 enabled, the test connection fails:

image

Logs are blank.

Fix: Add ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11; to the QRSNTLMWebClient.cs file (add to a new line after line 26) and recompile.

SBentley commented 4 years ago

For anyone else having this issue I have created a fork of the project with TLS 1.2 support https://github.com/SBentley/QlikSense-Task-Failure-Email-Alerts-Secure

This does not hard code TLS 1.2 but instead let's the system decide on the version as per this article using ServicePointManager.SecurityProtocol = SecurityProtocolType.SystemDefault;

You will need to make sure .NET Framework 4.7 is installed and install using the new binary.