SSL connect error (OpenSSL SSL_connect: Connection reset by peer in connection to crates.io/XXX:443

SSL connect error (OpenSSL SSL_connect: Connection reset by peer in connection to xxx:443

使用git从远程下载时,出现Unknown SSL protocol error in connection to xxx:443 错误。

设置代理服务器:

方法一:在.gitconfig 文件加上

http.proxy=127.0.0.1:8087

http.sslVerify=false

 

方法二:直接在命令行输入

git config --global http.proxy 127.0.0.1:8087

git config --global http.sslVerify false

经过以上操作后,问题就解决了,快试试吧

你可能感兴趣的:(linux,ubuntu,openssl,linux,rust,运维)