Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ssl

chocolatey

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

like image 672
jamie yiw Avatar asked Feb 04 '20 22:02

jamie yiw


People also ask

Could not establish trust relationship for the SSL TLS secure channel Choco?

A common reason you may receive the error Could not establish trust relationship for the SSL/TLS secure channel is because the SSL certificate isn't trusted. If the SSL certificate is not trusted, you will need to install the SSL certificate's root certificate.

Where is chocolatey installed?

Chocolatey Client Software By default, the Chocolatey client is installed into the C:\ProgramData\Chocolatey local directory on the Windows computer.

How do I uninstall chocolaty?

Most of Chocolatey is contained in C:\ProgramData\chocolatey or whatever $env:ChocolateyInstall evaluates to. You can simply delete that folder.


1 Answers

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'))

like image 122
jamie yiw Avatar answered Sep 30 '22 06:09

jamie yiw