change securityprotocoltype to tls
This commit is contained in:
@@ -30,11 +30,10 @@ If ( $CUSTOMER_ID )
|
|||||||
}
|
}
|
||||||
|
|
||||||
## Setup security and certificate parameters to download from untrusted sources
|
## Setup security and certificate parameters to download from untrusted sources
|
||||||
[Net.ServicePointManager]::SecurityProtocol =
|
|
||||||
[Net.SecurityProtocolType]::Tls12 -bor `
|
|
||||||
[Net.SecurityProtocolType]::Tls11 -bor `
|
|
||||||
[Net.SecurityProtocolType]::Tls
|
|
||||||
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
|
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
|
||||||
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls
|
||||||
|
#[Net.SecurityProtocolType]::Tls12 -bor `
|
||||||
|
#[Net.SecurityProtocolType]::Tls11 -bor `
|
||||||
|
|
||||||
## Download the agent installer
|
## Download the agent installer
|
||||||
Try { (New-Object System.Net.WebClient).DownloadFile($AGENT_URL, $AGENT_INSTALLER) }
|
Try { (New-Object System.Net.WebClient).DownloadFile($AGENT_URL, $AGENT_INSTALLER) }
|
||||||
|
|||||||
Reference in New Issue
Block a user