今天安装sass,替换国内gem源时,报错了。
ERROR: SSL verification error at depth 0: certificate has expired (10)
ERROR: Certificate /C=CN/ST=ZheJiang/L=HangZhou/O=Alibaba (China) Technology Co., Ltd./CN=*.taobao.org expired at 2018-12-05T03:16:02Z
Error fetching https://ruby.taobao.org/:
SSL_connect returned=1 errno=0 state=error: certificate verify failed (certificate has expired) (https://ruby.taobao.org/specs.4.8.gz)
这么解决:替换时改为这样!
gem sources --add https://gems.ruby-china.com/
//打印是否替换成功
gem sources -l
//更换成功后打印如下
*** CURRENT SOURCES ***
https://gems.ruby-china.com/