Skip to content

Commit

Permalink
Workaround to force an upgraded tls version
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Berry committed Feb 7, 2020
1 parent 5cffb5f commit cc081f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/InstallChocolatey.ps1.erb
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ param (
[string]$url,
[string]$file
)
Write-Output "Bodging tls"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Write-Output "Downloading $url to $file"
$downloader = new-object System.Net.WebClient
$downloader.Proxy.Credentials=[System.Net.CredentialCache]::DefaultNetworkCredentials;
Expand Down

0 comments on commit cc081f6

Please sign in to comment.