gpt4 book ai didi

rust - cargo 建立时“A fatal alert message was received from our peer” SSL错误

转载 作者:行者123 更新时间:2023-12-03 11:39:22 25 4
gpt4 key购买 nike

我打算在Debian上构建一个使用rand库的Rust项目,但在cargo build上遇到SSL错误:

→ cargo build
Updating crates.io index
error: failed to load source for a dependency on `rand`

Caused by:
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:
SSL error: 0xffff8880 - SSL - A fatal alert message was received from our peer; class=Ssl (16)
尝试 curl URL可以正常工作:
→ curl https://github.com/rust-lang/crates.io-index
<html output>

最佳答案

设置环境变量CARGO_HTTP_CHECK_REVOKE=false对我来说解决了这个问题,例如

export CARGO_HTTP_CHECK_REVOKE=false
cargo build

关于rust - cargo 建立时“A fatal alert message was received from our peer” SSL错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63903708/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com