Add TLS support up to TLS 1.2

This commit is contained in:
twangboy 2019-04-12 13:56:06 -06:00
parent eb9243007b
commit a36c0d8f19
No known key found for this signature in database
GPG key ID: 93FF3BDEB278C9EB

View file

@ -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
#===============================================================================