Off late I am working on a standard-issue Windows 10 laptop that is locked down and has a self-signed SSL certificate.
Now, Git doesn’t play well with self-signed certificates and whenever I am trying to clone a Git I get the following error.
fatal: unable to access 'https://github.com/joemccann/dillinger.git/': SSL certificate problem: self signed certificate in certificate chain
As disabling SSL certificate and voiding the error is a bad practice, you are better off installing root certificates. This should resolve the problem. If not, you can follow one of these steps to get around the problem temporarily.
Type the following in the same line:
env GIT_SSL_NO_VERIFY=true git clone <Your .git URL>
Git Configuration Change
Change the Git Config file to bypass SSL verification
git config --global http.sslVerify false
Warning: The best solution is to install valid root certificates. Only use these solutions in a bind as a temporary measure. Do not use this solution in Production environments.
Originally published at The Pragmatic Architect.