From c252c74dc800b0b34fcbe0293eb3e608b9ee5a28 Mon Sep 17 00:00:00 2001 From: twangboy Date: Mon, 15 Apr 2019 10:18:16 -0600 Subject: [PATCH] Add tls support for version 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 #===============================================================================