error setting certificate verify
Git ssh error setting certificate verify
Categories:
在透過 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