Tux*_*evo 6 ssl github ssl-certificate rust rust-cargo
在定义依赖项(rand="0.3.0"
)之后尝试从教程(猜谜游戏)中的示例时,我得到了这个:
$ cargo build --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
Unable to update registry https://github.com/rust-lang/crates.io-index
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
[16] The SSL certificate is invalid
Run Code Online (Sandbox Code Playgroud)
将此添加到货物注册表git repo,但没有成功:
[http]
sslVerify = false
Run Code Online (Sandbox Code Playgroud)
在哪里挖?
正如评论中所述,这可能是您和 Github 之间的某人修改了您的通信(MITM)或您的系统配置错误(例如缺少证书)。(Github 方面不太可能出现问题。)
首先尝试使用纯 git 进行调试:git clone https://github.com/rust-lang/crates.io-index.git
要获取有关具体失败的详细信息openssl s_client -debug -showcerts -connect github.com:443
,以及如果它没有自行退出(因为连接有效),请按CTRL-C
退出。输出包含有关远程提供的证书以及如何验证或验证失败的信息。
如果有人修改了您的通信,请发布此内容以及traceroute github.com
类似内容的输出,以便其他人可以避开该提供者。
归档时间: |
|
查看次数: |
1256 次 |
最近记录: |