security protocol syntax update
This commit is contained in:
@@ -30,7 +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 = "tls12, tls11, tls"
|
[Net.ServicePointManager]::SecurityProtocol =
|
||||||
|
[Net.SecurityProtocolType]::Tls12 -bor `
|
||||||
|
[Net.SecurityProtocolType]::Tls11 -bor `
|
||||||
|
[Net.SecurityProtocolType]::Tls
|
||||||
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
|
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
|
||||||
|
|
||||||
## Download the agent installer
|
## Download the agent installer
|
||||||
|
|||||||
Reference in New Issue
Block a user