mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +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
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue