parsec-cloud / Parsec-Cloud-Preparation-Tool

Launch Parsec enabled cloud computers via your own cloud provider account.
925 stars 168 forks source link

PostInstall.ps1 fails to download from builds.parsecgaming.com #54

Closed BirkhoffLee closed 3 years ago

BirkhoffLee commented 3 years ago
Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel."
At C:\Users\user\Desktop\parsectemp\PostInstall\PostInstall.ps1:467 char:5
+     (New-Object System.Net.WebClient).DownloadFile("https://builds.pa ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

This is the same to https://github.com/parsec-cloud/Parsec-Cloud-Preparation-Tool/issues/14. Apparently

[Net.ServicePointManager]::SecurityProtocol = "tls12, tls11, tls" 

needs to be put in PostInstall.ps1 instead of the initial command.

BirkhoffLee commented 3 years ago

Note: this was run on GCP, Windows Server 2016

powext commented 3 years ago

Same

patriciodavila commented 3 years ago

same

jamesstringerparsec commented 3 years ago

I didn't get this error under Server 2019, perhaps Server 2016 is different

jamesstringerparsec commented 3 years ago

I added this based on your feedback, I didn't experience it myself however.

powext commented 3 years ago

I tested multiple instances in the last few weeks, on GCP and AWS, and only in WS16 machines the script breaks

jamesstringerparsec commented 3 years ago

Most likely to WS16 default TLS level being too low, I guess they set WS19 to a more reasonable level.