4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

GitHubのhttps経由cloneに失敗する場合の対応(EV SSL用ルート証明書追加)

Last updated at Posted at 2013-06-06

おかしかった点

cloneしようとするとエラーになりました

# git clone https://github.com/XXXXX/YYYYY.git
Cloning into 'YYYYY'...
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://github.com/XXXXX/YYYYY.git/info/refs
fatal: HTTP request failed

SSL証明書が足りてないようだ

参考サイト

ほぼ以下の記事どおりで対応。wget自体エラーになるのを若干修正した感じ
http://d.hatena.ne.jp/tetsuyai/20110924/1316877887

対応

証明書を取得

#wget --no-check-certificate -P /tmp https://www.digicert.com/testroot/DigiCertHighAssuranceEVRootCA.crt

インストール
この辺りは環境によって変わるようなので適当に読みかえる

#locate libcurl.so
/usr/lib/libcurl.so
/usr/lib/libcurl.so.3
/usr/lib/libcurl.so.3.0.0
/usr/lib64/libcurl.so
/usr/lib64/libcurl.so.3
/usr/lib64/libcurl.so.3.0.0
#strings /usr/lib64/libcurl.so.3 | grep bundle
/etc/pki/tls/certs/ca-bundle.crt
#cat /tmp/DigiCertHighAssuranceEVRootCA.crt >> /etc/pki/tls/certs/ca-bundle.crt

結果

# git clone https://github.com/XXXXX/YYYYY.git
Cloning into 'YYYYY'...
remote: Counting objects: 8091, done.
remote: Compressing objects: 100% (2685/2685), done.
remote: Total 8091 (delta 5563), reused 7661 (delta 5241)
Receiving objects: 100% (8091/8091), 1.84 MiB | 364 KiB/s, done.
Resolving deltas: 100% (5563/5563), done.

うまく行きました

4
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
4
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?