Debian/Linux 上的 Ruby 不受支持的协议 (OpenSSL::SSL::SSLError) [英] Ruby unsupported protocol (OpenSSL::SSL::SSLError) on Debian/Linux

查看:152
本文介绍了Debian/Linux 上的 Ruby 不受支持的协议 (OpenSSL::SSL::SSLError)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

/usr/lib/ruby/1.8/net/http.rb:586:in `connect': SSL_connect返回=1 errno=0 state=unknown state: unsupported protocol (OpenSSL::SSL::SSLError)

我找到了答案,我ḿ将此作为其他用户的参考.

解决方案

您需要将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.

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

How to fix this error that happens on Debian Linux using ssl commands with ruby ?

/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)

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

I had this error after upgrading openssl libs from openssl_1.0.0h-1 (amd64) to openssl_1.0.1-4.

I'm on Debian testing wheezy.

Just use https://github.com/sstephenson/rbenv to install ruby 1.8.7-p358. I had the standard ruby 1.8.7.352 from debian testing.

Hope it helps, if so comment !

这篇关于Debian/Linux 上的 Ruby 不受支持的协议 (OpenSSL::SSL::SSLError)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆