【问题标题】:Ruby unsupported protocol (OpenSSL::SSL::SSLError) on Debian/LinuxDebian/Linux 上的 Ruby 不受支持的协议 (OpenSSL::SSL::SSLError)
【发布时间】:2012-04-23 12:38:20
【问题描述】:

如何使用带有 ruby​​ 的 ssl 命令修复 Debian Linux 上发生的这个错误?

/usr/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect returned=1 errno=0 state=unknown state: 不支持的协议(OpenSSL::SSL::SSLError)

我找到了答案,我将其发布为其他用户的参考。

【问题讨论】:

    标签: ruby ssl openssl ruby-1.8 libssl


    【解决方案1】:

    您需要将 ruby​​ 版本更改为至少 1.8.7-p358

    将 openssl 库从 openssl_1.0.0h-1 (amd64) 升级到 openssl_1.0.1-4 后出现此错误。

    我正在 Debian 上测试喘息。

    只需使用https://github.com/sstephenson/rbenv 安装 ruby​​ 1.8.7-p358。我有来自 debian 测试的标准 ruby​​ 1.8.7.352。

    希望对你有帮助,如果有请评论!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-07-02
      • 2020-10-03
      • 1970-01-01
      • 1970-01-01
      • 2014-08-10
      • 2021-11-03
      • 2014-02-18
      • 2013-06-26
      相关资源
      最近更新 更多