添加淘宝ruby镜像时

gem sources --add https://ruby.taobao.org/ --remove https://rubygems.org/

出现错误如下:

Error fetching https://ruby.taobao.org/:
        SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://rubygems-china.oss-cn-hangzhou.aliyuncs.com/specs.4.8.gz)

处理如下:

cd /etc/ssl/certs
wget http://curl.haxx.se/ca/cacert.pem
export SSL_CERT_FILE=/etc/ssl/certs/cacert.pem