Browse Source

Add fix for GitHub TLS 1.2 restriction

Douglas Thrift 6 years ago
parent
commit
c34229cf31
1 changed files with 5 additions and 0 deletions
  1. 5 0
      update_all.ps1

+ 5 - 0
update_all.ps1

@@ -71,6 +71,11 @@ $Options = [ordered]@{
     }
 }
 
+[System.Net.ServicePointManager]::SecurityProtocol = 3072 -bor
+  768 -bor
+  [System.Net.SecurityProtocolType]::Tls -bor
+  [System.Net.SecurityProtocolType]::Ssl3
+
 if ($ForcedPackages) { Write-Host "FORCED PACKAGES: $ForcedPackages" }
 $global:au_Root = $Root                                    #Path to the AU packages
 $global:info = updateall -Name $Name -Options $Options