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

Install issue on Windows 10 #727

JMezquerro opened this Issue Mar 1, 2018 · 4 comments


None yet
3 participants

JMezquerro commented Mar 1, 2018


I get an error installing COSMOS in windows 10, either using the .bat file or through command prompt (gem install cosmos). I've install COSMOS in the past succesfully, the issue raised ~2 days ago. This is the log recevied in the command prompt:

"Downloading 64-bit Ruby
Exception when calling "DownloadFile" with the arguments "2": "Canceled the request: Unable to create a secure channel
In Line: 1 Character: 1

  • (New-Object Net.WebClient).DownloadFile(' ...
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : WebException

ERROR: Problem downloading 64-bit Ruby from:


This comment has been minimized.


jasonatball commented Mar 1, 2018

Github recently made a change that disallows any clients not using TLS 1.2 (crypto-removal-notice). Edit the Installer script and change the powershell download line to the following.

powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object Net.WebClient).DownloadFile('!PROTOCOL!:!RUBY_INSTALLER_PATH!!RUBY_INSTALLER_64!', '!COSMOS_INSTALL!\tmp\!RUBY_INSTALLER_64!')"

The new code is the explicit setting of the SecurityProtocol. We will update the installer script soon.


This comment has been minimized.


ryanatball commented Mar 1, 2018

I just pushed this change to the installer script. You can get the new one at:

We still need a different fix for Windows 7

@jasonatball jasonatball added the bug label Mar 1, 2018


This comment has been minimized.

JMezquerro commented Mar 2, 2018

Now it works perfect again! Thank you very much for your great work with COSMOS!

@JMezquerro JMezquerro closed this Mar 2, 2018


This comment has been minimized.


ryanatball commented Mar 19, 2018

I just checked in a change to fix Windows 7 as well.

@ryanatball ryanatball added this to the v4.2.2 milestone Apr 11, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment