Could not create SSL / TLS secure channel
I will assume that the problem is that PowerShell cannot verify the validity of the certificate. Try adding the following code before calling Invoke-Webrequest :
# Make invoke-webrequest to ignore cert check add-type @" using System.Net; using System.Security.Cryptography.X509Certificates; public class TrustAllCertsPolicy : ICertificatePolicy { public bool CheckValidationResult( ServicePoint srvPoint, X509Certificate certificate, WebRequest request, int certificateProblem) { return true; } } "@ [System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
It helped me, however, in the reverse situation - it was necessary to download from https to bypass certificate verification. I do not know how much it works in the opposite direction.