SSL – Self-signed Certificates in Certificate Chain

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 '': 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.

Environment Variable 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.

Also published on Medium.

Leave a Reply

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

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    Markdown is turned off in code blocks:
     [This is not a link](

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see

This site uses Akismet to reduce spam. Learn how your comment data is processed.