LoginSignup
1
4

More than 5 years have passed since last update.

Windowsでgit cloneした時にca-bundle.crtエラーが発生する

Posted at

対象者

  • git cloneでエラーが発生する。

エラー内容

fatal: unable to access 'https://github.com/xxx-user/repository-name.git/': error setting certificate verify locations:
CAfile: C:/Program Files/Git/mingw64/libexec/ssl/certs/ca-bundle.crt
CApath: none

原因

ca-bundle.crtファイルが存在しないため。

対処方法

  1. http://curl.haxx.se/docs/caextract.html からcacert.pemをダウンロード
  2. ~/.ssh/cacert.pemとか適当な場所へ置く
  3. ~/.gitconfigに追加する。
    bash [http] sslcainfo = C:/Users/shwld/.ssh/cacert.pem
  4. 再度、cloneを実施する!!
1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4