git submodule updateをした時にSSL証明書エラーが出た時の対処方法

dotfilesを他環境でcloneして使おうとしたらハマってしまったのでメモ

エラー内容

~~~
# git submodule init
# git submodule update
Cloning into vimfiles/colors…
Password:
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://[email protected]/nobuhiko/ap_dark8.git/info/refs

fatal: HTTP request failed
Clone of ‘https://[email protected]/nobuhiko/ap_dark8.git’ into submodule path ‘vimfiles/colors’ failed
~~~

解決方法

~~~
curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt
~~~

参考URL: SSL3_GET_SERVER_CERTIFICATE – はるかなる熊

コメント

タイトルとURLをコピーしました