While doing clone to your hosted GIT server repository sometime you can face SSL certificate problem. By turning off SSL verification you can over come this issue.
Issue:
$ git clone https://test@bitbucket.org/test/test.git
Cloning into 'test'...
fatal: unable to access 'https://test@bitbucket.org/test/test.git/':
SSL certificate problem: unable to get local issuer certificate
Solution :
Turn
off Git SSL Verification
You can stop the Git client from verifying
your servers certificate and to trust all SSL certificates you use with the Git
client. This has it’s own security risks as you would not be warned if there
was a valid problem with the server you are trying to connect to.
That said, it’s the quickest and easiest
fix for a non trusted server certificate. Simply run the below git command on
your Git client.
Run
- git config --global http.sslVerify false
If you are under proxy : Use below command:
git config --global http.proxy http://<User Name>:<Password>@proxy.net.com:8080
<User name> --> Give user name
<Password> --> Use password
NOTE : If your password have any special charecter make sure you use encoded value for that.
Get encoded value --> https://en.wikipedia.org/wiki/UTF-8
e.g. if you have & in password use %26