Search code examples
sslchocolatey

Chocolatey install Error: The request was aborted: Could not create SSL/TLS secure channel


I'm getting the following error when installing Chocolatey - 'https://chocolatey.org/install.ps1'

Error The request was aborted: Could not create SSL/TLS secure channel


Solution

  • Looks like the security protocol changed:

    Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))