Skip to content

Instantly share code, notes, and snippets.

@tdittmar
Created December 10, 2016 19:55
Show Gist options
  • 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