summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Titan <51837023+TimothyTitan@users.noreply.github.com>2020-10-29 09:17:06 -0500
committerGitHub <noreply@github.com>2020-10-29 09:17:06 -0500
commit1f5b1e65965a2593c19a1c0baaa58f2245c1b5ad (patch)
tree17717ed453355c4d10f0e0c2cd5fcac52c4a829c
parentef9649e543b6218053fc98208ce884cc81882ce1 (diff)
downloadchef-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.rb2
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;