简体   繁体   English

Ruby Debian/Linux 上不支持的协议 (OpenSSL::SSL::SSLError)

[英]Ruby unsupported protocol (OpenSSL::SSL::SSLError) on Debian/Linux

How to fix this error that happens on Debian Linux using ssl commands with ruby?如何使用 ruby 使用 ssl 命令修复 Debian Linux 上发生的错误?

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

I found the answer, Iḿ posting this as a reference for other users.我找到了答案,我将其发布作为其他用户的参考。

You need to change ruby version to at least 1.8.7-p358您需要将 ruby 版本更改为至少 1.8.7-p358

I had this error after upgrading openssl libs from openssl_1.0.0h-1 (amd64) to openssl_1.0.1-4.将 openssl 库从 openssl_1.0.0h-1 (amd64) 升级到 openssl_1.0.1-4 后出现此错误。

I'm on Debian testing wheezy.我在 Debian 测试喘息。

Just use https://github.com/sstephenson/rbenv to install ruby 1.8.7-p358.只需使用https://github.com/sstephenson/rbenv安装 ruby 1.8.7-p358。 I had the standard ruby 1.8.7.352 from debian testing.我有来自 debian 测试的标准 ruby 1.8.7.352。

Hope it helps, if so comment !希望对您有所帮助,如果有请评论!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM