security protocol syntax update

This commit is contained in:
2020-05-24 15:40:22 -04:00
parent f7a4f6eaff
commit 45550cfb2d
+4 -1
View File
@@ -30,7 +30,10 @@ If ( $CUSTOMER_ID )
}
## Setup security and certificate parameters to download from untrusted sources
[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls"
[Net.ServicePointManager]::SecurityProtocol =
[Net.SecurityProtocolType]::Tls12 -bor `
[Net.SecurityProtocolType]::Tls11 -bor `
[Net.SecurityProtocolType]::Tls
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
## Download the agent installer