【发布时间】:2023-01-23 19:30:14
【问题描述】:
我正在尝试按照“.NET Tutorial - Hello World in 5 minutes”中的说明在 Centos 7 上安装 .net Core SDK 2.0.0。
当我运行第一个命令时
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
我收到此错误:
curl: (60) Peer's Certificate issuer is not recognized.
More details here: http://curl.haxx.se/docs/sslcerts.html
curl performs SSL certificate verification by default, using a "bundle"
of Certificate Authority (CA) public keys (CA certs). If the default
bundle file isn't adequate, you can specify an alternate file
using the --cacert option.
If this HTTPS server uses a certificate signed by a CA represented in
the bundle, the certificate verification probably failed due to a
problem with the certificate (it might be expired, or the name might
not match the domain name in the URL).
If you'd like to turn off curl's verification of the certificate, use
the -k (or --insecure) option.
error: https://packages.microsoft.com/keys/microsoft.asc: import read failed(2)
我在公司代理后面,这个错误似乎与 SSL 证书和卷曲有关,但我不知道如何修复它。
此外,当我使用 curl 或 wget 下载 HTTPS URL 时,我也会遇到类似的错误。
【问题讨论】: