Issue

  • git clone SSL connect error (NSS error -12190)
  • git fatal: HTTP request failed
~$ git clone https://github.com/vim/vim.git
Initialized empty Git repository in /root/vim/.git/
error:  while accessing https://github.com/vim/vim.git/info/refs

fatal: HTTP request failed

# or

~$ git clone https://github.com/fshilver/settings.git
Cloning into 'settings'...
fatal: unable to access 'https://github.com/fshilver/settings.git/': SSL connect error
~$ GIT_CURL_VERBOSE=1 git clone https://github.com/fshilver/settings.git
Cloning into 'settings'...
* 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.113... * Connected to github.com (192.30.253.113) 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/fshilver/settings.git/': SSL connect error

Environment

  • CentOS 6.4

Solution

  • update nsscurl packages
~$ yum update -y nss curl
  • try again
~$ git clone https://github.com/fshilver/settings.git
Cloning into 'settings'...
remote: Counting objects: 30, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 30 (delta 0), reused 5 (delta 0), pack-reused 24
Unpacking objects: 100% (30/30), done.
Checking connectivity... done.