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

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

我在安装 Chocolatey 时遇到以下错误 - 'https://chocolatey.org/install.ps1'

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

看起来安全协议已更改:

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