# 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
2
第二行的路径为git安装路径,--global
可改为--local
,分别对应全局和单个设置,
再设置git config --local http.sslVerify "true"