diff options
author | Tim Titan <51837023+TimothyTitan@users.noreply.github.com> | 2020-10-29 09:17:06 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 09:17:06 -0500 |
commit | 1f5b1e65965a2593c19a1c0baaa58f2245c1b5ad (patch) | |
tree | 17717ed453355c4d10f0e0c2cd5fcac52c4a829c | |
parent | ef9649e543b6218053fc98208ce884cc81882ce1 (diff) | |
download | chef-1f5b1e65965a2593c19a1c0baaa58f2245c1b5ad.tar.gz |
Update windows_bootstrap_context.rb
Adding tls1.2 support for powershell.
From - https://github.com/chef/chef/issues/8713
-rw-r--r-- | lib/chef/knife/core/windows_bootstrap_context.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/knife/core/windows_bootstrap_context.rb b/lib/chef/knife/core/windows_bootstrap_context.rb index ae8d3f37eb..4acb4c3e51 100644 --- a/lib/chef/knife/core/windows_bootstrap_context.rb +++ b/lib/chef/knife/core/windows_bootstrap_context.rb @@ -255,6 +255,8 @@ class Chef [String] $localPath ) + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 + $ProxyUrl = $env:http_proxy; $webClient = new-object System.Net.WebClient; |