The request was aborted: Could not create SSL/TLS secure channel

Hi,

We’re using Octopus to deploy to GitHub our code. We had the same issue with 2018.2.5 and after upgrading to 2018.3.7.

indent preformatted text by 4 spaces
Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel. 
At C:\Octopus\Work\20180327162428-96255-9\Script.ps1:27 char:11 
+ $result = Invoke-RestMethod @releaseParams 
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
+ CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke- 
RestMethod], WebExc  
eption 
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand  
The remote script failed with exit code 1 
The action GitHub - Create Release on XXXX.domain.com failed

Hi, thanks for reaching out.

GitHub recently updated to TLS 1.2, and so any PowerShell code making network requests to GitHub must have the following line of code:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

If you are using our community templates (for example the GitHub - Create Release template), then these have been updated to support TLS 1.2. However you will need to manually update your projects to make use of the latest code. The documentation at https://octopus.com/docs/deployment-process/steps/updating-step-templates has instructions for updating templates.

Regards
Matthew Casperson

SOLVED! Thank you for quick respond.

Kind Regards,
Branko

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.