From 56b07eaa5f4d9d0b8a1c43fd74faf69d2ea3c663 Mon Sep 17 00:00:00 2001 From: kgavican Date: Fri, 27 May 2016 09:08:35 +0100 Subject: [PATCH] Add init to console for tls 1.x support --- product/roundhouse.console/Program.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/product/roundhouse.console/Program.cs b/product/roundhouse.console/Program.cs index 15a7a4c3..5aa7e630 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; @@ -27,6 +28,8 @@ private static void Main(string[] args) { Log4NetAppender.configure(); + init_security_protocol(); + int exit_code = 0; try @@ -429,6 +432,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 RoundhouseMigrationRunner get_migration_runner(ConfigurationPropertyHolder configuration) { return new RoundhouseMigrationRunner(