2011年7月22日金曜日

CentOS4系でgit pullするときにSSLのエラーがでるときの対処

またGithub からcloneするときにSSLエラーが出たので、DigiCertのSSL証明書を追加して解決 - Goodpic

よく起きるgithubのSSLエラー。DigiCertの証明書が足りないみたいなので追加するとよい。ただし、CentOS4の証明書の場所が参考と違ったのでメモ。

digicertのルート証明書
cd /usr/share/ssl/certs
sudo wget https://www.digicert.com/testroot/DigiCertHighAssuranceEVRootCA.crt
sudo chmod 666 ca-bundle.crt
sudo cat DigiCertHighAssuranceEVRootCA.crt >> ca-bundle.crt
sudo chmod 644 ca-bundle.crt
これでOK。vundleとか使っているとforce的にするもの面倒なのでこんな風に対処するといいらしい。
centos5系のときは以下を参照。
http://d.hatena.ne.jp/takayuki_goto/20110622/p1
$ curl -Lk https://raw.github.com/gugod/App-perlbrew/master/perlbrew-install | bash curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). The default bundle is named curl-ca-bundle.crt; you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
追記:こんな感じでエラーになっているときにも同じ方法で対応できる。

2011年7月5日火曜日

CentOS5 の rpmforge の追加

rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
i386 : wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
x86_64 : wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
rpm -K rpmforge-release-0.5.2-2.el5.rf.*.rpm
rpm -i rpmforge-release-0.5.2-2.el5.rf.*.rpm
yum install git
gitってplusとかにも入っていないんですね。