Posted by & filed under GIT.

Depending on the type of corporate network your machine is on, they may do some funky things to SSL certificates. For example, completely breaking them and replacing them with a different one. Here’s some example errors that a colleague of mine was having:

$ git submodule update
 Initialized empty Git repository in /home/user/.vim/bundle/NERDTree/.git/
 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

To ignore such certificate errors, you can issue the following command to prevent git from verifying SSL certificates:

git config --global http.sslVerify false

Keep in mind though that this is technically a security risk, and you should not run this command on your personal computers outside of this firewalled network. If you move your machine between various networks, this should be re-enabled when on a normal network.

Thomas Hunter II

Support Thomas on Patreon. Thomas is the author of Advanced Microservices and a prolific public speaker with a passion for reducing complex problems into simple language and diagrams. His career includes working at Fortune 50's in the Midwest, co-founding a successful startup, and everything in between.