From 176481d8e4e55c2ff7c00b3161f7a62e53f6f3f4 Mon Sep 17 00:00:00 2001 From: Emmanuel Mahuni Date: Wed, 22 Jan 2020 07:17:33 +0000 Subject: [PATCH] Fix Invoke-WebRequest Fails with SSL/TLS Secure Channel fails (#294) It seems like on Windows Server 2016 or maybe other Windows OSs powershell uses TLS 1.0 by default and the sources have different tls versions. So this will make the script work without throwing those errors. --- windows/install.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/windows/install.ps1 b/windows/install.ps1 index 62265ec..de787e9 100644 --- a/windows/install.ps1 +++ b/windows/install.ps1 @@ -2,6 +2,8 @@ # Installs PostreSQL, PostgreSQL ODBC driver, PHP 7.1, GIT, Web Platform Installer, # Configures ODBC, IIS, and FusionPBX +[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls, ssl3" + # includes . .\resources\config.ps1 . .\resources\get-file.ps1