Explorar el Código

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.
Emmanuel Mahuni hace 5 años
padre
commit
176481d8e4
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      windows/install.ps1

+ 2 - 0
windows/install.ps1

@@ -2,6 +2,8 @@
 #   Installs PostreSQL, PostgreSQL ODBC driver, PHP 7.1, GIT, Web Platform Installer,
 #   Installs PostreSQL, PostgreSQL ODBC driver, PHP 7.1, GIT, Web Platform Installer,
 #   Configures ODBC, IIS, and FusionPBX
 #   Configures ODBC, IIS, and FusionPBX
 
 
+[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls, ssl3"
+
 # includes
 # includes
 . .\resources\config.ps1
 . .\resources\config.ps1
 . .\resources\get-file.ps1
 . .\resources\get-file.ps1