Search code examples
gitsslgithubmacos-sierra

SSL: CA certificate set, but certificate verification is disabled - Mac OS Sierra


I upgraded my Mac OS to Sierra. After upgrading, when I tried to do npm install I get the following error:

ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular-animate.git", exit code of #128 fatal: unable to access 'https://github.com/angular/bower-angular-animate.git/': SSL: CA certificate set, but certificate verification is disabled

I have written a script wherein

npm install

also includes

bower install

I have tried few possible solutions to fix the error, but nothing seems to work.

Any help would be appreciated!


Solution

  • As mentioned here, it means Git is using a cURL based on Apple's Secure Transport, and the target of the URL request (GitHub) doesn't support SSLv3 (which was probably disabled due to the POODLE exploit).
    This is true for GitHub since October 2014

    You need to install curl and Git with openssl

    brew install --with-openssl curl
    brew install git --with-brewed-curl