У нас настроено развертывание Octopus для нашего приложения. После успешного развертывания у нас есть шаг отправки уведомления о состоянии развертывания.
However this steps is failing since last few days but I am not able to find out root cause of it.
We are getting below error:
______________________________________________________________________________
Invoke-RestMethod : The request was aborted: Could not create SSL/TLS secure channel.
+ Invoke-RestMethod -Method POST -Body ($payload | ConvertTo-Json - ...
Error
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException+ FullyQualifiedError IdWebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
The remote script failed with exit code 1
______________________________________________________________________________
We have verified tls version on server.
We have referred few articles from net to bypass ssl or tls validation.
Powershell Script we are using
_____________________________________________________________________________
[Net.ServicePointManager] :: SecurityProtocol = [Net.SecurityProtocolType]:: Tls12
Invoke-RestMethod -Metod POST -Body ($ payload | ConvertTo-Json -Depth 4) -Uri $ OctopusParameters ['HookUrl'] -ContentType 'application / json'}