error: SSL certificate problem, verify that the CA cert is OK.

git clone https://github.com/twitter/mysql.git
Cloning into ‘mysql’…
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/twitter/mysql.git/info/refs?service=git-upload-pack
fatal: HTTP request failed

原因:ssl证书认证失败。

解决方案:暂时disable ssl。

 

git config --global http.sslVerify false
或者
export GIT_SSL_NO_VERIFY=true

更多信息:

http://stackoverflow.com/questions/3777075/ssl-certificate-rejected-trying-to-access-github-over-https-behind-firewall

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>