Rails 5 - How to solve OpenSSL::X509::StoreError: system lib issue?

Rails 5 - How to solve OpenSSL::X509::StoreError: system lib issue?

在尝试创建新的 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

如何解决这个证书错误?

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

有关详细信息,请参阅 https://bundler.io/v1.16/bundle_config.html