Problem

You might encounter the following error message while downloading the IGAnow on-prem Gateway installer using Windows Server 2016 or below:


PS C:\Windows\system32> iwr https://iam4cloud.azurewebsites.net/IAMCloudGateway/installer/setup.ps1 -OutFile setup.ps1

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

At line:1 char:1

+ iwr https://iam4cloud.azurewebsites.net/IAMCloudGateway/installer/set ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebExc

   eption

    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
POWERSHELL


Solution

The error message is due to the missing TLS 1.2 support with Powershell in Windows Server 2016 and below. To work around that, run the following command prior to downloading the IGAnow on-prem Gateway installer:

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