前言
今天更新deno的时候PowerShell提示未能创建 SSL/TLS安全通道,于是就去Google了一番,出来了很多结果
最终一一尝试了一番:
答案:
# 在Powershell中运行该条命令
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://apod.nasa.gov/apod/
今天更新deno的时候PowerShell提示未能创建 SSL/TLS安全通道,于是就去Google了一番,出来了很多结果
最终一一尝试了一番:
答案:
# 在Powershell中运行该条命令
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://apod.nasa.gov/apod/