如何更新rvm的证书

时间:2018-01-27 22:38:43

标签: ruby rvm

rvm慢慢地杀了我。

我试图在我的rails应用程序中找到内存泄漏。为此,我尝试安装侦察兵。为此,我尝试捆绑和部署侦察宝石。为此,我开始收到此错误

ERROR:  SSL verification error at depth 2: certificate has expired (10)
ERROR:  Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z
ERROR:  SSL verification error at depth 2: certificate has expired (10)
ERROR:  Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z
ERROR:  SSL verification error at depth 2: certificate has expired (10)
ERROR:  Certificate /C=BE/O=GlobalSign nv-sa/OU=Root CA/CN=GlobalSign Root CA expired at 2014-01-28T12:00:00Z
ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

根据文档,因为我在Mac上,我应该运行:

rvm osx-ssl-certs update all

然而,当我这样做时,它似乎停留在红宝石1.93:

Selected SSL certs for: ruby-1.9.3-p551
cURL certificate bundle /usr/share/curl/curl-ca-bundle.crt not found
Updating certificates bundle /usr/local/etc/openssl/cert.pem: Already up to date.
Updating certificates bundle /usr/local/etc/openssl@1.1/cert.pem: Already up to date.

即使我已经开始,并且默认为红宝石2.3.1:

rvm rubies

   ruby-1.9.3-p551 [ x86_64 ]
=* ruby-2.3.1 [ x86_64 ]
   ruby-2.4.0 [ x86_64 ]

毋庸置疑,我的问题仍然存在。我无法在ruby 2.3.1上安装任何宝石。有没有办法强制要更新证书的ruby版本?

0 个答案:

没有答案