jruby gem SSL 验证错误在深度 2 - 您必须添加 Blue Coat 系统云服务根 CA

问题描述

我正在尝试在我的 Mac 上设置 JRuby。使用命令时

jruby -S gem install nokogiri

安装 gem。我收到 SSL 验证错误

按照网上的一些建议,我试试

curl -Lks 'https://git.io/rg-ssl' | jruby

并得到以下结果:

Ruby:           2.5.7p0 (2019-10-30 revision 67816) [java]
RubyGems:       2.7.10
Compiled with:  JRuby-OpenSSL 0.10.2
Loaded version: JRuby-OpenSSL 0.10.2
SSL_CERT_FILE:  /usr/local/Cellar/openjdk@11/11.0.10/libexec/openjdk.jdk/Contents/Home/lib/security/cacerts
SSL_CERT_DIR:   /etc/ssl/certs

With that out of the way,let's see if you can connect to rubygems.org...

Bundler connection to rubygems.org:       Failed  ❌  (uninitialized constant Bundler)
ERROR:  SSL verification error at depth 2: unable to get local issuer certificate (20)
ERROR:  You must add /C=US/O=BlueCoat Systems,Inc./CN=Cloud Services Root CA to your local trusted store
RubyGems connection to rubygems.org:      Failed  ❌  (certificate verification)
Ruby net/http connection to rubygems.org: Failed

有人可以帮忙解决这个问题吗?谢谢。

史蒂夫

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)