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.
This commit is contained in:
Emmanuel Mahuni 2020-01-22 07:17:33 +00:00 committed by FusionPBX
parent 36ed2be462
commit 176481d8e4
1 changed files with 2 additions and 0 deletions

View File

@ -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