Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active December 24, 2017 12:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/27073858ecb254aba5035ff063aea313 to your computer and use it in GitHub Desktop.
Save guitarrapc/27073858ecb254aba5035ff063aea313 to your computer and use it in GitHub Desktop.
PowerShell v5.1 default still use ssl3 therefore many sites will reject connection. Use TLS12 instead.
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
Invoke-WebRequest https://pawoo.net -UseBasicParsing -Method Get
@guitarrapc
Copy link
Author

guitarrapc commented Dec 24, 2017

You can escape issue by "strictly use TLS1.2 and later" or "Use PowerShell Core 6.0.0 rc.2 and higher"

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment