Git SSL certificate problem – how to turn off SSL validation for a repo

This will start out with an error such as the following:

$ git pull origin master
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/mopidy/mopidy.git/info/refs

If it is acceptable to turn off the SSL validation instead of actually solving the issue this will turn off validation for the current repo

git config --local http.sslVerify false

If you would rather have this as a default behaviour for git then the following will do it for all repos

git global --local http.sslVerify false

and for those that would rather add to the .git/config file directly the entry looks like

[http]
    sslVerify = false

One thought on “Git SSL certificate problem – how to turn off SSL validation for a repo

  1. You meant (at least with git 1.7.12):

    1)
    git config –local http.sslVerify false

    2)
    git config –global http.sslVerify false

    3)
    “to the ~/.gitconfig file directly”
    [http]
    sslVerify = false

Comments are closed.