2023-03-01 fatal: unable to access 'https://github.com/top-think/think/': OpenSSL SSL_read: Connection was reset, errno 10054

问题描述:在thinkphp官网拉取tp5项目文件时报错:

fatal: unable to access 'https://github.com/top-think/think/': OpenSSL SSL_read: Connection was reset, errno 10054

致命:无法访问'https://github.com/top-think/think/':OpenSSL SSL_read:连接已重置,错误号10

原因:git不信任该拉取地址,或者说该拉取地址的服务器的SSL证书没有经过第三方机构的签署。

解决方案:执行下面代码,作用是不需要通过sll证书认证。

git config --global http.sslVerify false

再次执行拉取,成功。

posted @ 2023-03-01 10:57  叶乘风  阅读(70)  评论(0编辑  收藏  举报