• 周六. 3月 2nd, 2024

    git clone 报错:fatal: unable to access ‘https://github.com/unknwon/com/’: OpenSSL SSL_read: Connection was reset, errno 10054

    root

    11月 6, 2022 #Git

    今天在用git clone gin框架时,报了下边的错误:

    go: github.com/unknwon/com@v1.0.1: reading github.com/unknwon/com/go.mod at revision v1.0.1: git ls-remote -q origin in D:\study\go\pkg\mod\cache\vcs\81e4e490a5cef2e50e332eb8da6cbc4dbabf79c4623c59261e7035690a672a65: exit status 128:
            fatal: unable to access 'https://github.com/unknwon/com/': OpenSSL SSL_read: Connection was reset, errno 10054
    
    经查原因为:一般是这是因为服务器的SSL证书没有经过第三方机构的签署,所以才报错
    
    参考网上解决办法:解除ssl验证后,再次git即可
    
    git config --global http.sslVerify false

    root