【问题标题】:Rails 5 - How to solve OpenSSL::X509::StoreError: system lib issue?Rails 5 - 如何解决 OpenSSL::X509::StoreError: system lib 问题?
【发布时间】:2018-06-11 07:26:42
【问题描述】:

在尝试创建一个新的 rails 5 项目时,我遇到了类似的错误

OpenSSL::X509::StoreError: system lib
...
...

### Gemfile.lock

```
<No /home/shruthi/Projects/VSupport/Gemfile.lock found>
```

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/bundler/bundler/search?q=system+lib&type=Issues

If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/bundler/bundler/issues/new
     run  bundle exec spring binstub --all
* bin/rake: spring inserted
* bin/rails: spring inserted

我的 rvm 列表是这样的

    ruby-2.3.1 [ x86_64 ]
 =* ruby-2.5.1 [ x86_64 ]

当尝试通过ruby -ropenssl -e 'puts OpenSSL::X509::DEFAULT_CERT_FILE' 解决它时,输出类似于/usr/lib/ssl/cert.pem

我系统的证书文件(名称)是Fortinet_CA_SSL.crtFortinet_CA_SSLProxy.crt

如何解决这个证书错误?

【问题讨论】:

    标签: ruby-on-rails openssl certificate ssl-certificate rvm


    【解决方案1】:

    ~/.bundle/config 文件中添加BUNDLE_SSL_CA_CERT: "/usr/local/share/ca-certificates/Fortinet/Fortinet_CA_SSLProxy.crt" 并重新启动系统。

    更多详情请咨询https://bundler.io/v1.16/bundle_config.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-08-12
      • 1970-01-01
      • 2022-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-29
      相关资源
      最近更新 更多