error setting certificate verify

Git ssh error setting certificate verify

在透过 https 去 clone github 的 Repository 时,出现 error setting certificate verify locations 的讯息

$ git clone https://github.com/FortAwesome/Font-Awesome.git
Cloning into 'Font-Awesome'...
fatal: unable to access 'https://github.com/FortAwesome/Font-Awesome.git/': error setting certificate verify locations:
  CAfile: /Users/kejyun/.ssh/id_rsa
  CApath: none

发现是验证 ssl 凭证时发生错误,在 git config 设定 http.sslverify 不要验证 ssl 凭证即可

git config --system http.sslverify false

参考资料