Skip to content

Instantly share code, notes, and snippets.

@PlagueHO
Created February 27, 2018 20:52
Show Gist options
  • Save PlagueHO/491c0b2ba0a419004fb39187c0f8915f to your computer and use it in GitHub Desktop.
Save PlagueHO/491c0b2ba0a419004fb39187c0f8915f to your computer and use it in GitHub Desktop.
Enable TLS 1.2 support in PowerShell
if (-not ([Net.ServicePointManager]::SecurityProtocol).ToString().Contains([Net.SecurityProtocolType]::Tls12)) {
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol.toString() + ', ' + [Net.SecurityProtocolType]::Tls12
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment