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
{

View file

@ -9,8 +9,8 @@
<entry>
<id>urn:uuid:2C48A585-72D2-43FB-8987-6B5F0B3E460F</id>
<title>1.1.425 (1.1.425.2)</title>
<summary>1.1.425.2</summary>
<title>1.1.425 (1.1.425.3)</title>
<summary>1.1.425.3</summary>
<link href="" />
<updated>2022-05-06T00:00:00Z</updated>
<content type="xhtml">
@ -22,6 +22,7 @@
<li>Global Settings - added RCON broadcast mode droplist, so auto processes can send messages via RCON using this mode.</li>
<li>Auto Processes - changed the message broadcast to use the new config setting, not a hardcoded value.</li>
<li>Auto Backup Settings - added RCON broadcast mode droplist, so backup processes can send messages via RCON using this mode.</li>
<li>Security Protocol Changes - updated the security protocols to use TLS12 and TLS13.</li>
</ul>
</p>
</div>

View file

@ -7,6 +7,29 @@
<link href="http://arkservermanager.freeforums.net/" />
<updated>2022-05-06T00:00:00Z</updated>
<entry>
<id>urn:uuid:606BA376-9AB5-46D9-8533-0BEBF841934E</id>
<title>1.1.425 (1.1.425.3)</title>
<summary>1.1.425.3</summary>
<link href="" />
<updated>2022-05-06T00:00:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
<p>
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Security Protocol Changes - updated the security protocols to use TLS12 and TLS13.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:E6701920-FF1E-48B7-B70A-18B9BC3592F7</id>
<title>1.1.425 (1.1.425.2)</title>

View file

@ -97,6 +97,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();
@ -323,8 +324,6 @@ namespace ServerManagerTool
{
base.OnStartup(e);
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
_globalizer = GlobalizedApplication.Instance;
try
{

View file

@ -9,8 +9,8 @@
<entry>
<id>urn:uuid:AD8ABBB5-093A-4FDB-B473-FCED2DB46781</id>
<title>1.1.69 (1.1.69.1)</title>
<summary>1.1.69.1</summary>
<title>1.1.69 (1.1.69.3)</title>
<summary>1.1.69.3</summary>
<link href="" />
<updated>2022-05-06T00:00:00Z</updated>
<content type="xhtml">
@ -25,6 +25,7 @@
<br/>
<ul>
<li>Auto Backup Settings - added RCON broadcast mode droplist, so backup processes can send messages via RCON using this mode.</li>
<li>Security Protocol Changes - updated the security protocols to use TLS12 and TLS13.</li>
</ul>
</p>
</div>

View file

@ -7,6 +7,29 @@
<link href="http://servermanagers.freeforums.net/" />
<updated>2022-05-06T00:00:00Z</updated>
<entry>
<id>urn:uuid:92A777C4-75B2-468F-BC46-F42327A4D2D1</id>
<title>1.1.69 (1.1.69.3)</title>
<summary>1.1.69.3</summary>
<link href="" />
<updated>2022-05-06T00:00:00Z</updated>
<content type="xhtml">
<div xmlns="http://www.w3.org/1999/xhtml" style="font-family: Arial, Verdana, Helvetica, Sans-Serif;font-size: .8em;">
<p>
<u style="font-size: .9em;">CHANGE</u>
<br/>
<ul>
<li>Security Protocol Changes - updated the security protocols to use TLS12 and TLS13.</li>
</ul>
</p>
</div>
</content>
<author>
<name>bletch</name>
<email>bletch1971@hotmail.com</email>
</author>
</entry>
<entry>
<id>urn:uuid:6AC9586B-1678-46B5-9FD7-86B20FB67293</id>
<title>1.1.69 (1.1.69.2)</title>

View file

@ -3,6 +3,7 @@ using System;
using System.Diagnostics;
using System.DirectoryServices.AccountManagement;
using System.IO;
using System.Net;
using System.Security;
using System.Security.AccessControl;
using System.Security.Principal;
@ -284,5 +285,12 @@ namespace ServerManagerTool.Common.Utils
}
return secureString;
}
public static SecurityProtocolType GetSecurityProtocol(int securityProtocolValue)
{
if (Enum.TryParse(securityProtocolValue.ToString(), out SecurityProtocolType securityProtocol))
return securityProtocol;
return SecurityProtocolType.Tls12;
}
}
}

View file

@ -32,7 +32,7 @@ namespace ServerManagerTool.Updater
{
Console.Title = "Server Manager Updater";
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
ServicePointManager.SecurityProtocol = SecurityUtils.GetSecurityProtocol(0xC00 + 0x3000); // TLS12, TLS13
var updaterArgs = args;
ApplicationArgs = null;

View file

@ -0,0 +1,15 @@
using System;
using System.Net;
namespace ServerManagerTool.Updater
{
public static class SecurityUtils
{
public static SecurityProtocolType GetSecurityProtocol(int securityProtocolValue)
{
if (Enum.TryParse(securityProtocolValue.ToString(), out SecurityProtocolType securityProtocol))
return securityProtocol;
return SecurityProtocolType.Tls12;
}
}
}