Skip to content

Instantly share code, notes, and snippets.

@tdittmar
Created December 10, 2016 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdittmar/047a9c1ce35bf2b88697578b483d4e4f to your computer and use it in GitHub Desktop.
Save tdittmar/047a9c1ce35bf2b88697578b483d4e4f to your computer and use it in GitHub Desktop.
Force TLS encryption in C#
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls |
SecurityProtocolType.Tls11 |
SecurityProtocolType.Tls12;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment