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

The error message is:

$ git clone https://github.com/ansible/ansible.git .
Cloning into ‘.’…
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/ansible/ansible.git/info/refs?service=git-upload-pack

fatal: HTTP request failed

There are basically two solutions,
Solution 1, make sure your ca-bundle is updated.

$ rpm -qf /etc/pki/tls/certs/ca-bundle.crt
openssl-0.9.8e-20.el5

You can simply copy a newer file and overwrite the existed one.

Solution 2, Ignore the certificate check like this,

git config --global http.sslVerify false
Share Button

Leave a comment

Your email address will not be published. Required fields are marked *