Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 92547ba

Browse files
committed
Make sure we're on tls 12
1 parent 2ede40f commit 92547ba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/OctoRun/Program.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System;
44
using System.Collections.Generic;
55
using System.Diagnostics;
6+
using System.Net;
67
using System.Threading.Tasks;
78
using static OctoRun.LoginManager;
89

@@ -94,6 +95,8 @@ static void Main(string[] args)
9495
{
9596
//Logging.LogAdapter = new ConsoleLogAdapter();
9697

98+
ServicePointManager.ServerCertificateValidationCallback = (sender, chain, cert, errors) => true;
99+
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
97100
AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
98101

99102
var opts = new OptionSet();

0 commit comments

Comments
 (0)