Skip to content

Commit

Permalink
#102 Extended ServicePointManager.SecurityProtocol with Tls13 and bec…
Browse files Browse the repository at this point in the history
…ause branch release/v1 is a Windows PowerShell 5.1 and .NET Framework 4.8 only we can Close #102
  • Loading branch information
ddemeyer committed Aug 9, 2022
1 parent 9dd08f3 commit 6322555
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public static class ServicePointManagerHelper
/// </summary>
public static void RestoreCertificateValidation()
{
_logger.WriteDebug("Enabling Tls, Tls11 and Tls12 security protocols");
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
_logger.WriteDebug("Enabling Tls, Tls11, Tls12 and Tls13 security protocols");
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls13;
}
}
}

0 comments on commit 6322555

Please sign in to comment.