【问题标题】:RVM "Empty path passed to certificates update" when updating certs on Ruby 2.4.1在 Ruby 2.4.1 上更新证书时,RVM“传递给证书更新的空路径”
【发布时间】:2017-09-28 10:28:42
【问题描述】:

无法在 ruby​​ 2.4.1 上安装 gem。

$ruby -v
ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin14]

$rvm osx-ssl-certs status all
Selected SSL certs for: ruby-1.9.2-p290
cURL certificate bundle /usr/share/curl/curl-ca-bundle.crt not found
Certificates bundle /usr/local/etc/openssl/cert.pem is up to date.
Certificates bundle /etc/openssl/cert.pem is up to date.
Certificates bundle  is old.

$gem install bundler
ERROR:  While executing gem ... (Gem::Exception)
    Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources

$rvm osx-ssl-certs update all
Selected SSL certs for: ruby-1.9.2-p290
cURL certificate bundle /usr/share/curl/curl-ca-bundle.crt not found
Updating certificates bundle /usr/local/etc/openssl/cert.pem: Already up to date.
Updating certificates bundle /etc/openssl/cert.pem: Already up to date.
Updating certificates bundle : Empty path passed to certificates update, functions stack: requirements_osx_update_openssl_cert_run __rvm_osx_ssl_certs_update_for_path __rvm_osx_ssl_certs_run_filter_and_run __rvm_osx_ssl_certs_run __rvm_osx_ssl_certs_update __rvm_osx_ssl_certs source __rvm_run_wrapper rvm
Failed.

那个基础证书是怎么回事?

尝试卸载并重新安装适用于以前版本的 openssl。试过rvm get head。没有运气。

【问题讨论】:

  • 它正在检查您的 1.9.2 证书,这是 Ruby 的博物馆级版本。你能用它来检查 2.4.1,你显然想使用的版本吗?

标签: ruby openssl ssl-certificate rvm


【解决方案1】:

在我的情况下,我似乎有一个导致问题的 openssl 版本。解决方案是删除它:

brew uninstall --force openssl098

【讨论】:

    猜你喜欢
    • 2018-05-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-02
    • 2015-05-15
    • 2021-10-29
    • 2018-10-12
    • 1970-01-01
    相关资源
    最近更新 更多