Ruby 现在 Ruby China 的 RubyGems 镜像不能用呢?

cxbird · February 03, 2023 · Last by cxbird replied at February 03, 2023 · 519 hits

当前 gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/

执行 gem install gosu

提示如下:

ERROR: SSL verification error at depth 1: certificate has expired (10)

ERROR: Certificate /O=Digital Signature Trust Co./CN=DST Root CA X3 expired at 2021-09-30T14:01:15Z

ERROR: SSL verification error at depth 1: certificate has expired (10)

ERROR: Certificate /O=Digital Signature Trust Co./CN=DST Root CA X3 expired at 2021-09-30T14:01:15Z

ERROR: SSL verification error at depth 3: certificate has expired (10)

ERROR: Certificate /O=Digital Signature Trust Co./CN=DST Root CA X3 expired at 2021-09-30T14:01:15Z

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.

证书过期了,请问这个 gems.ruby-china.com 没有维护了吗?

Ruby China 源用的是 Let's Encrypt 证书,老的 Ruby 内置的证书也许验证不了。看楼主的信息用的是 Ruby 2.6 官方已经不维护了。

Reply to Rei

是需要升级我的 ruby 版本吗?

Reply to cxbird

是的

Reply to Rei

谢谢

You need to Sign in before reply, if you don't have an account, please Sign up first.