From a36c0d8f19b6e81c5d7b538f30fc224e3d2f2462 Mon Sep 17 00:00:00 2001 From: twangboy Date: Fri, 12 Apr 2019 13:56:06 -0600 Subject: [PATCH] Add TLS support up to TLS 1.2 --- bootstrap-salt.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap-salt.ps1 b/bootstrap-salt.ps1 index 747c74d..34c8984 100644 --- a/bootstrap-salt.ps1 +++ b/bootstrap-salt.ps1 @@ -99,6 +99,9 @@ Param( [string]$repourl= "https://repo.saltstack.com/windows" ) +# Powershell supports only TLS 1.0 by default. Add support up to TLS 1.2 +[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]'Tls,Tls11,Tls12' + #=============================================================================== # Script Functions #===============================================================================