Security Protocol Changes

- updated the security protocols to use TLS12 and TLS13.
This commit is contained in:
Brett Hewitson 2022-05-06 15:43:35 +10:00
parent 3731ad6655
commit e017c679b9
9 changed files with 78 additions and 9 deletions

View file

@ -98,6 +98,7 @@ namespace ServerManagerTool
Title = string.Empty;
Version = AppUtils.GetDeployedVersion(Assembly.GetEntryAssembly());
ServicePointManager.SecurityProtocol = SecurityUtils.GetSecurityProtocol(0xC00 + 0x3000); // TLS12, TLS13
AppDomain.CurrentDomain.UnhandledException += ErrorHandling.CurrentDomain_UnhandledException;
MigrateSettings();
@ -324,8 +325,6 @@ namespace ServerManagerTool
{
base.OnStartup(e);
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
_globalizer = GlobalizedApplication.Instance;
try
{