ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
21.24k stars 1.41k forks source link

Installation failed, due to SSL/TLS Error [fix] #4002

Closed LarsOlt closed 2 years ago

LarsOlt commented 4 years ago

I had to do the following to get the installation to work. Maybe this helps someone.

Set-ExecutionPolicy RemoteSigned -scope CurrentUser iwr -useb get.scoop.sh | iex

Source: Stackoverflow

imgx64 commented 4 years ago

This issue is caused by TLSv1.3, but I'm not sure why. I looked at the failing connections with Wireshark and noticed they're TLSv1.3. Firefox and Chrome successfully connect to GitHub using TLSv1.3, but in PowerShell even a simple iwr https://github.com fails unless I manually set SecurityProtocol to TLSv1.2.

I can't confirm it, but I think Windows 10 Version 2004 enabled TLSv1.3 in SystemDefault SecurityProtocol. Should scoop disable TLSv1.3 until the PowerShell implementation matches whatever Firefox and Chrome do?

Windows 10, Version 2004, Build 19041.329 PSVersion: 5.1.19041.1

imgx64 commented 4 years ago

I tried on a different machine, and it worked perfectly on a fresh install of Windows 10 version 2004, so the Windows version is not to blame.

However, I found out the following: 1- My work's firewall seems to be blocking TLSv1.3 connections from PowerShell but not from Firefox or Chrome. Connecting directly to the internet solves the problem. 2- I had a registry key enabling TLSv1.3 (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client). I'm not sure how it got there, but removing it solved the issue.

alexxtasi commented 3 years ago

@LarsOlt ... this saved my day (on Windows 7)

LarsOlt commented 3 years ago

@LarsOlt ... this saved my day (on Windows 7)

I am glad I could help

aldebran97 commented 1 year ago

I deleted the scoop directory and reinstalled it. With an earlier version of powershell, there were no errors when installing the package.

aetonsi commented 1 year ago
screenshot

i couldn't resolve this problem for the life of me. security protocols all enabled (tls,tls11,tls12,tls13). scoop couldn't download this file curl-8.4.0_6-win64-mingw.tar.xz.

so i did a little of trial and error and i temporarily fixed it this way:

so there's really something up with the environment.. i was on windows server 2012. tried both with pwsh and winposh. same results.