Chocolatey 安装错误:请求被中止:无法创建 SSL/TLS 安全通道

jam*_*yiw 10 ssl chocolatey

安装 Chocolatey 时出现以下错误 - ' https://chocolatey.org/install.ps1 '

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

jam*_*yiw 15

看起来安全协议发生了变化:

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