diff --git a/product/roundhouse.console/Program.cs b/product/roundhouse.console/Program.cs index 4d4c725a..f7e439d7 100644 --- a/product/roundhouse.console/Program.cs +++ b/product/roundhouse.console/Program.cs @@ -1,5 +1,6 @@ using System; using System.Linq; +using System.Net; using log4net; using roundhouse.consoles; using roundhouse.databases; @@ -32,6 +33,8 @@ private static void Main(string[] args) { Log4NetAppender.configure(); + init_security_protocol(); + int exit_code = 0; try @@ -560,6 +563,12 @@ private static void run_diff_utility(ConfigurationPropertyHolder configuration) } } + public static void init_security_protocol() + { + // allow tls + ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Ssl3; + } + private static void run_update_check(ConfigurationPropertyHolder configuration) { if (!configuration.Silent)