Skip to content

Commit ba53add

Browse files
authored
Merge pull request #106 from patriksvensson/fix/TLS12
Added fix for GitHub's new TLS 1.2 requirement.
2 parents 1fd5ad8 + 53eb1b1 commit ba53add

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/GitReleaseManager.Cli/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace GitReleaseManager.Cli
1111
using System.Globalization;
1212
using System.IO;
1313
using System.Linq;
14+
using System.Net;
1415
using System.Text;
1516
using System.Threading.Tasks;
1617
using CommandLine;
@@ -28,6 +29,10 @@ public static class Program
2829
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope", Justification = "Not required")]
2930
private static int Main(string[] args)
3031
{
32+
// Just add the TLS 1.2 protocol to the Service Point manager until
33+
// we've upgraded to latest Octokit.
34+
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
35+
3136
var fileSystem = new FileSystem();
3237

3338
return Parser.Default.ParseArguments<CreateSubOptions, AddAssetSubOptions, CloseSubOptions, PublishSubOptions, ExportSubOptions, InitSubOptions, ShowConfigSubOptions>(args)

0 commit comments

Comments
 (0)