SSL certificate problem: unable to get local issuer certificate
1) Open Git Bash and run the command if you want to completely disable SSL verification.
git config --global http.sslVerify false
Note : But in this way, you may hit attacks like man in the middle attacks.
2) To disable the SSL for only one command, do the following:
git -c http.sslVerify=false clone https://domain.com/path/to/git
3) Better solution is to do this:
https://blogs.msdn.microsoft.com/phkelley/2014/01/20/adding-a-corporate-or-self-signed-certificate-authority-to-git-exes-store/
4) Edit the Git config text file located at:
C:\Program Files (x86)\Git\etc\gitconfig
In the [http] block, add an option to disable sslVerify. It would look like this:
[http]
sslVerify = false
sslCAinfo = /bin/curl-ca-bundle.crt
That did the trick.
NOTE: This disables SSL verification and is not recommended as a long term solution.
No comments:
Post a Comment