Skip to content

Windows installation fails with "The request was aborted: Could not create SSL/TLS secure channel." #33140

Closed
@svdHero

Description

@svdHero

System

  • Version: 12.16.3
  • Platform: Windows 8.1
  • .NET Versions installed: 4.5.1 , 4.6.1, 4.7.2, Core 2.2, Core 3.1

What steps will reproduce the bug?

  1. Download latest Nodejs LTS version here : https://nodejs.org/dist/v12.16.3/node-v12.16.3-x64.msi
  2. Install the msi
  3. Choose the option to install additional tools
  4. Confirm the execution of the installation script
  5. Wait until installation fails

How often does it reproduce? Is there a required condition?

Always fails. No condition required.

What is the expected behavior?

Installation just works and finishes without errors.

What do you see instead?

The error message:

Exception calling "DownloadString" with "1" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."
At line:1 char:1
+ iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/in ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException

Additional information

This seems to be well-known with Chocolatey clients:
https://chocolatey.org/docs/troubleshooting#the-request-was-aborted-could-not-create-ssltls-secure-channel
which has recently removed support for older TLS versions, see:
https://chocolatey.org/blog/remove-support-for-old-tls-versions

My computer does support TLS 1.2 and the Powershell command

[Enum]::GetNames([Net.SecurityProtocolType]) -contains 'Tls12'

returns True.

I have also created a file C:\Users\<myusername>\Documents\PowerShell\Profile.ps1 with content

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

but that did not change anything. The installation still fails.

What can I do to install nodejs with its additional tools?
Can you update your installation scripts, please?

Metadata

Metadata

Assignees

No one assigned

    Labels

    installIssues and PRs related to the installers.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions