From 53eb1b1a8aa54c4d231b360809d6be2426cf4253 Mon Sep 17 00:00:00 2001 From: Patrik Svensson Date: Sun, 25 Feb 2018 22:20:42 +0100 Subject: [PATCH] Added fix for GitHub's new TLS 1.2 requirement. --- Source/GitReleaseManager.Cli/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/GitReleaseManager.Cli/Program.cs b/Source/GitReleaseManager.Cli/Program.cs index 091f6d29..0b58a6b3 100644 --- a/Source/GitReleaseManager.Cli/Program.cs +++ b/Source/GitReleaseManager.Cli/Program.cs @@ -11,6 +11,7 @@ namespace GitReleaseManager.Cli using System.Globalization; using System.IO; using System.Linq; + using System.Net; using System.Text; using System.Threading.Tasks; using CommandLine; @@ -28,6 +29,10 @@ public static class Program [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Not required")] private static int Main(string[] args) { + // Just add the TLS 1.2 protocol to the Service Point manager until + // we've upgraded to latest Octokit. + ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12; + var fileSystem = new FileSystem(); return Parser.Default.ParseArguments(args)