Skip to content
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

Chocolatey fails to install due to chocolatey.org TLS 1.2 requirements not being set in install script #420

Closed
pauby opened this issue Feb 5, 2020 · 1 comment · Fixed by #421
Assignees
Labels
5 - Released The issue has been resolved, and released to the public for consumption Bug Issues where something has happened which was not expected or intended Priority_HIGH Issues that are considered to be a high priority to get fixed
Milestone

Comments

@pauby
Copy link
Member

pauby commented Feb 5, 2020

What You Are Seeing?

Downloading Boxstarter from the website and running setup.bat fails to install Chocolatey.

What Is Expected?

Running the setup.bat installs Chcolatey and Boxstarter.

How Did You Get This To Happen? (Steps to Reproduce)

  1. Go to Boxstarter.org, click 'Download v2.12', download the ZIP file and extract it;
  2. In the folder where the ZIP was extracted run setup.bat

Output Log

Exception calling "DownloadString" with "1" argument(s): "The request was aborted: Could not create SSL/TLS secure
channel."
At C:\Users\Administrator\Downloads\bootstrapper.ps1:75 char:13
+             iex ($wc.DownloadString("https://chocolatey.org/install.ps1"))
+             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException
@pauby
Copy link
Member Author

pauby commented Feb 5, 2020

Using the install instructions the main one, using CINST works fine (as to have this installed or working with the Chocolatey Community Repository you would already have had to have TLS 1.2 enabled) and this appears to be the way the vast majority of users are installing boxstarter (from experience). However, using the bootstrapper.ps1 without TLS 1.2 enabled fails. So we need to add that support to bootstrapper.ps1;

@pauby pauby self-assigned this Feb 5, 2020
@pauby pauby added 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue Bug Issues where something has happened which was not expected or intended Priority_HIGH Issues that are considered to be a high priority to get fixed Security Issues that are related to security vulnerabilites, or other security related problems labels Feb 5, 2020
@pauby pauby added this to the v2.13.0 milestone Feb 5, 2020
@gep13 gep13 closed this as completed in #421 Feb 6, 2020
gep13 added a commit that referenced this issue Feb 6, 2020
@gep13 gep13 added 4 - Done Code has been added to the repository, and has been reviewed by a team member and removed 0 - _Triaging Issue is accepted, but a milestone has yet to be added for the issue labels Feb 6, 2020
@pauby pauby added the Documentation Issues for changes that only need to change documentation label Oct 15, 2020
@pauby pauby changed the title TLS 1.2 required to access chocolatey.org Document TLS 1.2 requirements for chocolatey.org Oct 19, 2020
@pauby pauby changed the title Document TLS 1.2 requirements for chocolatey.org chocolatey.org fails to install due to TLS 1.2 requirements not being set in install script. Oct 19, 2020
@pauby pauby changed the title chocolatey.org fails to install due to TLS 1.2 requirements not being set in install script. Chocolatey fails to install due to chocolatey.org TLS 1.2 requirements not being set in install script. Oct 19, 2020
@pauby pauby added 5 - Released The issue has been resolved, and released to the public for consumption and removed 4 - Done Code has been added to the repository, and has been reviewed by a team member Documentation Issues for changes that only need to change documentation Security Issues that are related to security vulnerabilites, or other security related problems labels Oct 19, 2020
@pauby pauby changed the title Chocolatey fails to install due to chocolatey.org TLS 1.2 requirements not being set in install script. Chocolatey fails to install due to chocolatey.org TLS 1.2 requirements not being set in install script Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Released The issue has been resolved, and released to the public for consumption Bug Issues where something has happened which was not expected or intended Priority_HIGH Issues that are considered to be a high priority to get fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants