输入命令:irm massgrave.dev/get |ie时,报错
irm : 请求被中止: 未能创建 SSL/TLS 安全通道。
所在位置 行:1 字符: 1 + irm massgrave.dev/get |iex + ~~~~~~~~~~~~~~~~~~~~~ +
CategoryInfo : InvalidOperation:
(System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod],WebExce ption +
FullyQualifiedErrorId :
WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand
查看当前[加密协议]
此时系统,所有的网络下载 经过https安全加密方式的TLS请求都会报错。因为加密版本不匹配的问题。
可以通过以下命令,查看当前加密协议,一般要新协议 Tls12 :
查看加密协议命令:
[System.Net.ServicePointManager]::SecurityProtocol
因为一般协议要Tls12,所以继续输入如下命令:
# fix ssl in tyy win10 server 2016
[System.Net.ServicePointManager]::SecurityProtocol += [System.Net.SecurityProtocolType]::Tls12;
此时协议已经是Tls12了,然后重新激活,激活步骤如下:
juejin.cn/post/741806…