reverted change

server updated to support legacy tls protocols
This commit is contained in:
2020-05-28 08:43:51 -04:00
parent 8b2e8d6061
commit 793c57d6b1
+4 -3
View File
@@ -31,9 +31,10 @@ If ( $CUSTOMER_ID )
## Setup security and certificate parameters to download from untrusted sources
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls
#[Net.SecurityProtocolType]::Tls12 -bor `
#[Net.SecurityProtocolType]::Tls11 -bor `
[Net.ServicePointManager]::SecurityProtocol =
[Net.SecurityProtocolType]::Tls12 -bor `
[Net.SecurityProtocolType]::Tls11 -bor `
[Net.SecurityProtocolType]::Tls
## Download the agent installer
Try { (New-Object System.Net.WebClient).DownloadFile($AGENT_URL, $AGENT_INSTALLER) }