From 846b6d75c8fe116616ea700d5d3cdab969dc2d4a Mon Sep 17 00:00:00 2001 From: John Simons Date: Thu, 24 Mar 2022 13:39:02 +1000 Subject: [PATCH] Following advice from https://docs.microsoft.com/en-us/dotnet/api/System.Net.ServicePointManager.SecurityProtocol?view=net-6.0#remarks In summary, we let the OS mandate what TLS version is used, this given control to the system administrators. Fixes https://github.com/OctopusDeploy/OctopusCLI/issues/170 --- source/Octopus.Cli/CliProgram.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/Octopus.Cli/CliProgram.cs b/source/Octopus.Cli/CliProgram.cs index a34b586e1a..7582cfe3a9 100644 --- a/source/Octopus.Cli/CliProgram.cs +++ b/source/Octopus.Cli/CliProgram.cs @@ -23,10 +23,6 @@ public class CliProgram { public int Execute(string[] args) { - ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls - | SecurityProtocolType.Tls11 - | SecurityProtocolType.Tls12; - ConfigureLogger(); return Run(args); }