V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xiaopanzi
V2EX  ›  SSL

如何解决 SSL connect error

  •  
  •   xiaopanzi · 2023-03-24 10:48:28 +08:00 · 841 次点击
    这是一个创建于 370 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我之前在 Manjaro 上为 Rust 的 crates 配置了 SJTU 的镜像,一直正常使用,今天发现报SSL connect error,本来以为他们镜像不正常,就换成清华的镜像,结果还是报错。

    Caused by: failed to download from https://mirrors.tuna.tsinghua.edu.cn/crates.io-index/config.json

    Caused by: [35] SSL connect error (OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to mirrors.tuna.tsinghua.edu.cn:443 )

    我试着运行openssl s_client -connect mirrors.tuna.tsinghua.edu.cn:443 -msg,但结果都是 Verify return code: 0 (ok) ,看起来并没有发现异常,请问这可能是什么原因导致的,应该如何解决这个问题?

    2 条回复    2023-03-24 11:12:59 +08:00
    everyx
        1
    everyx  
       2023-03-24 11:05:45 +08:00
    是不是走代理了,如果是的话可能是代理不稳定导致的
    xiaopanzi
        2
    xiaopanzi  
    OP
       2023-03-24 11:12:59 +08:00
    @everyx 果然。它会使用 git 的代理,我把 git 的代理关了就行。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3025 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 15:01 · PVG 23:01 · LAX 08:01 · JFK 11:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.