Skip to content

Commit

Permalink
Update TLS selection
Browse files Browse the repository at this point in the history
  • Loading branch information
webprofusion-chrisc committed Oct 28, 2024
1 parent ccbcf02 commit f8eb095
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/Certify.Shared/Utils/Util.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,7 @@ public static void SetSupportedTLSVersions()
{
try
{
ServicePointManager.SecurityProtocol = 0; // System Default
Debug.WriteLine("ServicePointManager.SecurityProtocol : System Default enabled");
return;
}
catch { }

try
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | (SecurityProtocolType)1228;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | (SecurityProtocolType)12288;
return;
}
catch
Expand Down

0 comments on commit f8eb095

Please sign in to comment.