• git SSL3_GET_SERVER_CERTIFICATE:certificate verify failed 解决方法

    日期:2015-03-18 | 分类:Linux安全

    版权声明:转载时请以超链接形式标明文章原始出处和作者信息及本声明
    http://www.blogbus.com/riusksk-logs/272147957.html

    riusksk@MacBook:~$ git clone --depth 1 --branch osxfuse-2.6.4 https://github.com/osxfuse/osxfuse.git /Library/Caches/Homebrew/osxfuse--git

    Cloning into '/Library/Caches/Homebrew/osxfuse--git'...

    fatal: unable to access 'https://github.com/osxfuse/osxfuse.git/': SSL certificate problem, verify that the CA cert is OK. Details:

    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

    riusksk@MacBook:~$ curl http://curl.haxx.se/ca/cacert.pem -o cacert.pem

      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                     Dload  Upload   Total   Spent    Left  Speed

    100  243k  100  243k    0     0  74485      0  0:00:03  0:00:03 --:--:-- 82259

     

    riusksk@MacBook:~$ git config --global http.sslCAInfo ~/cacert.pem 

    分享到:

    历史上的今天:

    往事 2011-03-18