Skip to content

Commit

Permalink
block tls 1.0 and 1.1 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottbommarito authored Dec 3, 2020
1 parent fdae439 commit 8251b2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NuGet.Licenses/Global.asax.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ private static void SetupInstrumentation()

private static void SetupSsl()
{
// Ensure that SSLv3 is disabled and that Tls v1.2 is enabled.
// Ensure that SSLv3 is disabled and that TLS v1.2 is the minimum TLS version.
ServicePointManager.SecurityProtocol &= ~SecurityProtocolType.Ssl3;
ServicePointManager.SecurityProtocol &= ~SecurityProtocolType.Tls;
ServicePointManager.SecurityProtocol &= ~SecurityProtocolType.Tls11;
ServicePointManager.SecurityProtocol |= SecurityProtocolType.Tls12;
}

Expand Down

0 comments on commit 8251b2d

Please sign in to comment.