From fdf201f8eaa4e06c4af68cc7e3e9454134a9190a Mon Sep 17 00:00:00 2001 From: Jason Brown Date: Thu, 23 Apr 2020 14:26:44 +1000 Subject: [PATCH 1/2] SSL3 not supported under PS7, remove; Add Tls13 --- .../Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 b/OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 index 6335798..276a9d6 100644 --- a/OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 +++ b/OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 @@ -64,7 +64,7 @@ function Invoke-OctopusApiOperation } # by default, only SSL3 and TLS 1.0 are supported. - [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType] "Ssl3, Tls, Tls11, Tls12"; + [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType] "Tls, Tls11, Tls12, Tls13"; #write-host "Invoke-OctopusApiOperation"; #write-host " uri = '$Uri'"; From 9a61f0a90d27b252abe59c7f3563c390f5aabc32 Mon Sep 17 00:00:00 2001 From: Jason Brown Date: Thu, 23 Apr 2020 14:29:15 +1000 Subject: [PATCH 2/2] Update a comment --- .../Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 b/OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 index 276a9d6..3f3d8a5 100644 --- a/OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 +++ b/OctopusStepTemplateCi/Cmdlets/Internal/Octopus/Api/Invoke-OctopusApiOperation.ps1 @@ -63,7 +63,7 @@ function Invoke-OctopusApiOperation return $cache.Item($cacheKey); } - # by default, only SSL3 and TLS 1.0 are supported. + # SSLv3 no longer supported [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType] "Tls, Tls11, Tls12, Tls13"; #write-host "Invoke-OctopusApiOperation";