Skip to content

Instantly share code, notes, and snippets.

@michaellwest
Created July 23, 2018 21:38
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 michaellwest/6fe22eb38ea3a83b522f0ca2c71a986c to your computer and use it in GitHub Desktop.
Save michaellwest/6fe22eb38ea3a83b522f0ca2c71a986c to your computer and use it in GitHub Desktop.
if (![Net.ServicePointManager]::SecurityProtocol.HasFlag([Net.SecurityProtocolType]::Tls12)) {
[Net.ServicePointManager]::SecurityProtocol += [Net.SecurityProtocolType]::Tls12
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment