使用git通过https方式从github clone git repo源码时,报错如下:
Cloning into 'git'...
fatal: unable to access 'https://github.com/git/git.git/': SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
开启curl verbose选项(用于调试)并重新执行git clone,详细报错信息:
$ export GIT_CURL_VERBOSE=1
$ git clone https://github.com/git/git.git
Cloning into 'git'...
* Couldn't find host github.com in the .netrc file, using defaults
* About to connect() to github.com port 443
* Trying 192.30.252.128... * connected
* Connected to github.com (192.30.252.128) port 443
* successfully set certificate verify locations:
* CAfile: /usr/share/ssl/certs/ca-bundle.crt
CApath: none
*