Security Protocol Changes

- Removed TLS13 from the list of accepted security protocols, as not all OS support TLS13.
This commit is contained in:
Brett Hewitson 2022-05-09 16:11:16 +10:00
parent a73b9978cf
commit 6fd9d9c555
7 changed files with 55 additions and 7 deletions

View file

@ -82,7 +82,7 @@ namespace ServerManagerTool
Title = string.Empty;
Version = AppUtils.GetDeployedVersion(Assembly.GetEntryAssembly());
ServicePointManager.SecurityProtocol = SecurityUtils.GetSecurityProtocol(0xC00 + 0x3000); // TLS12, TLS13
ServicePointManager.SecurityProtocol = SecurityUtils.GetSecurityProtocol(0xC00); // TLS12
AppDomain.CurrentDomain.UnhandledException += ErrorHandling.CurrentDomain_UnhandledException;
MigrateSettings();