How to solve SSL certificate: self signed certificate when cloning repo from github?
<p>I just installed git for windows and tried to clone glew's repo like this</p>

<pre><code>$ git clone https://github.com/nigels-com/glew.git
</code></pre>

<p>But I got the following error</p>

<pre><code>Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': SSL certificate problem: self signed certificate
</code></pre>

<p>I've seen people running into this problem and some possible workarounds.</p>

<p>First try </p>

<pre><code>$ git -c http.sslVerify=false clone https://github.com/nigels-com/glew.git
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': Empty reply from server
</code></pre>

<p>Second try</p>

<pre><code>$ git config --global http.sslVerify false
$ git clone https://github.com/nigels-com/glew.git
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': Empty reply from server
</code></pre>

<p>Then I checked for <code>http.sslcainfo</code> entry in the config files</p>

<pre><code>$ git config --system --list
credential.helper=manager

$ git config --global --list
https.proxy=&lt;proxy-address&gt;
http.sslverify=false
</code></pre>

<p>System and global config files does not have that entry. So I tried the following which I don't know what file is reading and try to unset it.</p>

<pre><code>$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
diff.astextplain.textconv=astextplain
rebase.autosquash=true
credential.helper=manager
http.sslverify=false

$ git config --unset http.sslcainfo
fatal: not in a git directory
</code></pre>

<p>Tried with global and system</p>

<pre><code>$ git config --global --unset http.sslcainfo
$ git clone https://github.com/nigels-com/glew.git
Cloning into 'glew'...
fatal: unable to access 'https://github.com/nigels-com/glew.git/': SSL certificate problem: self signed certificate

$ git config --system --unset http.sslcainfo
error: could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig: Permission denied
error: could not lock config file C:\Program Files\Git\mingw64/etc/gitconfig: Invalid argument
</code></pre>

<p>I still cannot clone that github repo. Any other idea I can try to fix this problem? What am I missing?</p>