如何解决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 举报,一经查实,本站将立刻删除。