-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lightworks - can't download version #366
Comments
"An unexpected error occurred on a send", "Unknown SSL protocol error" - these errors usually indicate a mismatch of SSL parameters (allowed SSL/TLS versions, enabled cipher suites etc.) between the client and the server. According to Qualsys SSL test, lwks.com has quite strict SSL configuration - they disable all protocols older than TLS 1.1. On the other hand, for backward compatibility reasons, .NET (and, by extension, PowerShell) has only SSL 3.0 and TLS 1.0 enabled by default(*):
.NET applications need to explicitly opt-in to newer TLS version support by setting the SecurityProtocol property of ServicePointManager, for example:
(my testing environment: Windows 10 1607, .NET 4.6.2, PowerShell 5.1) (*) Note: although this article claims that starting with .NET 4.6 all TLS protocols should be enabled by default (and I verified it by whipping up a quick C# app), I'm guessing that PowerShell is still compiled against .NET 4.5 (as suggested by its system requirements), which causes it to use the older defaults. |
@ferventcoder should be able to provide some input here as well. Fairly sure he has ran into the same thing within the choco client. |
@jberezanski , thanks for elaborate and epic answer. |
Note that if you are using Chocolatey 0.10.1+ with the built-in PowerShell host it is already set appropriately. |
Just adding for awareness that you don't need to do anything special in Chocolatey or chocolateyInstall.ps1 files to take advantage of TLS 1.2. |
The problem that @majkinetor was having was within the update.ps1 script for AU, in order to find out the latest version of a piece of software. i.e. outside of chocolatey. |
I know. I was just saying that this is not an issue in the PowerShell that Chocolatey runs, before anyone gets an ideas about messing with ServicePointManager in there. |
Ah, I see, gotcha. |
I made AU installer for lightworks in its own branch, however, I can't make it to the version because of this:
It happens if you want to download a page using whatever method - I tried iwr, webclient, webrequest.
Also:
Wget works on the other hand
So, I can't get a version now in
update.ps1
without using wget. I could take a dependency on it but looks like meh. I would appreciate any helpThe text was updated successfully, but these errors were encountered: