Windows下Git出现443问题

3/2/2022 windowsgit

# OpenSSL SSL_connect

每次在更新了博客后,提交到git经常碰到诸如“OpenSSL SSL_connect: Connection was reset in connection to github.com:443”的问题,在网上找过很多都是通过git config --global http.sslVerify false的方式解决,但我使用不生效,最后找到了下列方法,解决了问题:

git config --global http.sslBackend "openssl"
git config --global http.sslCAInfo "C:\Program Files\Git\mingw64\ssl\cert.pem"
1
2

第二行的路径为git安装路径,--global可改为--local,分别对应全局和单个设置, 再设置git config --local http.sslVerify "true"


# 个人博客:远近相安 (opens new window)

上次更新: 03/03/2022 15:25:55