mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Security Protocol Changes
- updated the security protocols to use TLS12 and TLS13.
This commit is contained in:
parent
3731ad6655
commit
e017c679b9
9 changed files with 78 additions and 9 deletions
|
|
@ -98,6 +98,7 @@ namespace ServerManagerTool
|
||||||
Title = string.Empty;
|
Title = string.Empty;
|
||||||
Version = AppUtils.GetDeployedVersion(Assembly.GetEntryAssembly());
|
Version = AppUtils.GetDeployedVersion(Assembly.GetEntryAssembly());
|
||||||
|
|
||||||
|
ServicePointManager.SecurityProtocol = SecurityUtils.GetSecurityProtocol(0xC00 + 0x3000); // TLS12, TLS13
|
||||||
AppDomain.CurrentDomain.UnhandledException += ErrorHandling.CurrentDomain_UnhandledException;
|
AppDomain.CurrentDomain.UnhandledException += ErrorHandling.CurrentDomain_UnhandledException;
|
||||||
|
|
||||||
MigrateSettings();
|
MigrateSettings();
|
||||||
|
|
@ -324,8 +325,6 @@ namespace ServerManagerTool
|
||||||
{
|
{
|
||||||
base.OnStartup(e);
|
base.OnStartup(e);
|
||||||
|
|
||||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
|
|
||||||
|
|
||||||
_globalizer = GlobalizedApplication.Instance;
|
_globalizer = GlobalizedApplication.Instance;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
<entry>
|
<entry>
|
||||||
<id>urn:uuid:2C48A585-72D2-43FB-8987-6B5F0B3E460F</id>
|
<id>urn:uuid:2C48A585-72D2-43FB-8987-6B5F0B3E460F</id>
|
||||||
<title>1.1.425 (1.1.425.2)</title>
|
<title>1.1.425 (1.1.425.3)</title>
|
||||||
<summary>1.1.425.2</summary>
|
<summary>1.1.425.3</summary>
|
||||||
<link href="" />
|
<link href="" />
|
||||||
<updated>2022-05-06T00:00:00Z</updated>
|
<updated>2022-05-06T00:00:00Z</updated>
|
||||||
<content type="xhtml">
|
<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>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 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>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>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,29 @@
|
||||||
<link href="http://arkservermanager.freeforums.net/" />
|
<link href="http://arkservermanager.freeforums.net/" />
|
||||||
<updated>2022-05-06T00:00:00Z</updated>
|
<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>
|
<entry>
|
||||||
<id>urn:uuid:E6701920-FF1E-48B7-B70A-18B9BC3592F7</id>
|
<id>urn:uuid:E6701920-FF1E-48B7-B70A-18B9BC3592F7</id>
|
||||||
<title>1.1.425 (1.1.425.2)</title>
|
<title>1.1.425 (1.1.425.2)</title>
|
||||||
|
|
|
||||||
|
|
@ -97,6 +97,7 @@ namespace ServerManagerTool
|
||||||
Title = string.Empty;
|
Title = string.Empty;
|
||||||
Version = AppUtils.GetDeployedVersion(Assembly.GetEntryAssembly());
|
Version = AppUtils.GetDeployedVersion(Assembly.GetEntryAssembly());
|
||||||
|
|
||||||
|
ServicePointManager.SecurityProtocol = SecurityUtils.GetSecurityProtocol(0xC00 + 0x3000); // TLS12, TLS13
|
||||||
AppDomain.CurrentDomain.UnhandledException += ErrorHandling.CurrentDomain_UnhandledException;
|
AppDomain.CurrentDomain.UnhandledException += ErrorHandling.CurrentDomain_UnhandledException;
|
||||||
|
|
||||||
MigrateSettings();
|
MigrateSettings();
|
||||||
|
|
@ -323,8 +324,6 @@ namespace ServerManagerTool
|
||||||
{
|
{
|
||||||
base.OnStartup(e);
|
base.OnStartup(e);
|
||||||
|
|
||||||
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
|
|
||||||
|
|
||||||
_globalizer = GlobalizedApplication.Instance;
|
_globalizer = GlobalizedApplication.Instance;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@
|
||||||
|
|
||||||
<entry>
|
<entry>
|
||||||
<id>urn:uuid:AD8ABBB5-093A-4FDB-B473-FCED2DB46781</id>
|
<id>urn:uuid:AD8ABBB5-093A-4FDB-B473-FCED2DB46781</id>
|
||||||
<title>1.1.69 (1.1.69.1)</title>
|
<title>1.1.69 (1.1.69.3)</title>
|
||||||
<summary>1.1.69.1</summary>
|
<summary>1.1.69.3</summary>
|
||||||
<link href="" />
|
<link href="" />
|
||||||
<updated>2022-05-06T00:00:00Z</updated>
|
<updated>2022-05-06T00:00:00Z</updated>
|
||||||
<content type="xhtml">
|
<content type="xhtml">
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
<br/>
|
<br/>
|
||||||
<ul>
|
<ul>
|
||||||
<li>Auto Backup Settings - added RCON broadcast mode droplist, so backup processes can send messages via RCON using this mode.</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>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,29 @@
|
||||||
<link href="http://servermanagers.freeforums.net/" />
|
<link href="http://servermanagers.freeforums.net/" />
|
||||||
<updated>2022-05-06T00:00:00Z</updated>
|
<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>
|
<entry>
|
||||||
<id>urn:uuid:6AC9586B-1678-46B5-9FD7-86B20FB67293</id>
|
<id>urn:uuid:6AC9586B-1678-46B5-9FD7-86B20FB67293</id>
|
||||||
<title>1.1.69 (1.1.69.2)</title>
|
<title>1.1.69 (1.1.69.2)</title>
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.DirectoryServices.AccountManagement;
|
using System.DirectoryServices.AccountManagement;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Net;
|
||||||
using System.Security;
|
using System.Security;
|
||||||
using System.Security.AccessControl;
|
using System.Security.AccessControl;
|
||||||
using System.Security.Principal;
|
using System.Security.Principal;
|
||||||
|
|
@ -284,5 +285,12 @@ namespace ServerManagerTool.Common.Utils
|
||||||
}
|
}
|
||||||
return secureString;
|
return secureString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static SecurityProtocolType GetSecurityProtocol(int securityProtocolValue)
|
||||||
|
{
|
||||||
|
if (Enum.TryParse(securityProtocolValue.ToString(), out SecurityProtocolType securityProtocol))
|
||||||
|
return securityProtocol;
|
||||||
|
return SecurityProtocolType.Tls12;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ namespace ServerManagerTool.Updater
|
||||||
{
|
{
|
||||||
Console.Title = "Server Manager 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;
|
var updaterArgs = args;
|
||||||
ApplicationArgs = null;
|
ApplicationArgs = null;
|
||||||
|
|
|
||||||
15
src/ServerManager.Updater/Utils/SecurityUtils.cs
Normal file
15
src/ServerManager.Updater/Utils/SecurityUtils.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue