From 8b2e8d60619287deef5efe311d2fb435d858b2f9 Mon Sep 17 00:00:00 2001 From: dyoder Date: Thu, 28 May 2020 08:38:35 -0400 Subject: [PATCH] change securityprotocoltype to tls --- Install-ManagementAgent.ps1 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Install-ManagementAgent.ps1 b/Install-ManagementAgent.ps1 index c53c14b..9a574d1 100644 --- a/Install-ManagementAgent.ps1 +++ b/Install-ManagementAgent.ps1 @@ -30,11 +30,10 @@ If ( $CUSTOMER_ID ) } ## 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} + [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls + #[Net.SecurityProtocolType]::Tls12 -bor ` + #[Net.SecurityProtocolType]::Tls11 -bor ` ## Download the agent installer Try { (New-Object System.Net.WebClient).DownloadFile($AGENT_URL, $AGENT_INSTALLER) }