Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github unable to access SSL connect error

Tags:

github

ssl

I have been using git lots for the last few months. git push worked 12 hours ago now all attempts generate errors, with verbose it produces this:

GIT_CURL_VERBOSE=1 git push * Couldn't find host github.com in the .netrc file; using defaults * About to connect() to github.com port 443 (#0) * Trying 192.30.253.112... * Connected to github.com (192.30.253.112) port 443 (#0) * Initializing NSS with certpath: sql:/etc/pki/nssdb *   CAfile: /etc/pki/tls/certs/ca-bundle.crt    CApath: none * NSS error -12190 * Expire cleared * Closing connection #0 fatal: unable to access 'https://github.com/waveney/wmff/': SSL connect error 

Any bright ideas? No changes to server from when it worked to now, restart made no difference

like image 633
Waveney Avatar asked Feb 22 '18 22:02

Waveney


People also ask

What is SSL verify in git?

git config — — global http.sslVerify falseThis error occur when self-signed certificate cannot be verified. By default the git verifies the self-signed certificate every time you push or pull the fixes to and from git server.

Where is git SSL certificate?

If you don't have them locally, you can download these certificates from the Git server using your web-browser or using the command-line. You can also open this directory in File Explorer by executing these commands in Git Bash: $ cd /mingw64/ssl/certs/ $ explorer .


1 Answers

I was having the same problem on various CentOS 6 VM's and it turned out to be an issue with stale curl and nss libraries (thanks to this thread for pointing me in the right direction: cURL SSL connect error 35 with NSS error -5961).

The fix that worked for me is just:

yum update -y nss curl libcurl 
like image 98
Rich Desiano Avatar answered Oct 25 '22 14:10

Rich Desiano