git SSL certificate- Invalid certificate chain while accessing
if you use self generated ssl key, you can try this.
git config --global http.sslVerify false
Refer https://confluence.atlassian.com/display/FISHKB/Unable+to+clone+Git+repository+due+to+self+signed+certificate
I recently (Jul 2014) had a similar issue and found on OS X (10.9.4) that there was a "DigiCert High Assurance EV Root CA" certificate had expired (although I had another unexpired one as well).
- Open
Keychain Access
- search
Certificates
for "DigiCert" -
View
menu >Show Expired Certificates
I found two certificates named "DigiCert High Assurance EV Root CA", one expiring Nov 2031 and the expired one at July 2014 (a few of days previously). Deleting the expired certificate resolved the issue for me.
Hope this helps.
Check your clock! In my case I was using HTTPS but my clock was wrong, I disabled SSL but eventually I realized the problem was the clock. Updating the clock and reenabling SSL did the trick:
git config --global http.sslVerify true
Wondering when this has changed or why it worked for others, but for me the solution was basically to use https
instead of http
:
git config --global https.sslVerify false