CygwinのgitでSSLのエラーになったら

Cygwinのgitでgithubにアクセスしたときに

error: error setting certificate verify locations:
  CAfile: /usr/ssl/certs/ca-bundle.crt
  CApath: none while accessing https://github.com/xxx/yyy.git/info/refs
fatal: HTTP request failed

SSLのエラーになる場合には、Cygwinのsetupでca-certificatesパッケージをインストールすればいい。

ちなみにwgetの場合は少し面倒で、/etcにシンボリックリンクを張らないといけない。

ln -s /usr/ssl /etc

以上。