Last active
June 5, 2018 15:11
-
-
Save giseongeom/e2a039858f6c396df4985eab4170882a to your computer and use it in GitHub Desktop.
Enable TLS 1.2 support on Powershell 5.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Enable tls1.2 from default (Ssl3, Tls) | |
| # https://powershell.org/forums/topic/is-it-possible-to-enable-tls-1-2-as-default-in-powershell/ | |
| # https://www.codyhosterman.com/2016/06/force-the-invoke-restmethod-powershell-cmdlet-to-use-tls-1-2/ | |
| # https://developercommunity.visualstudio.com/content/problem/201457/unable-to-connect-to-github-due-to-tls-12-only-cha.html | |
| # https://githubengineering.com/crypto-removal-notice/ | |
| [Net.ServicePointManager]::SecurityProtocol = ` | |
| [Net.SecurityProtocolType]::Ssl3 -bor ` | |
| [Net.SecurityProtocolType]::Tls -bor ` | |
| [Net.SecurityProtocolType]::Tls11 -bor ` | |
| [Net.SecurityProtocolType]::Tls12 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment