Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/http/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby HTTP SSL\u CTX\u集合\u密码\u列表:无密码匹配_Ruby_Http_Ssl_Openssl - Fatal编程技术网

Ruby HTTP SSL\u CTX\u集合\u密码\u列表:无密码匹配

Ruby HTTP SSL\u CTX\u集合\u密码\u列表:无密码匹配,ruby,http,ssl,openssl,Ruby,Http,Ssl,Openssl,我正在使用ActiveResource代理CRUD端点,但在尝试连接时出现无密码匹配错误。从显式设置SSL版本,到升级本地openssl客户端,再到直接设置密码列表,我已经尝试了一切 我希望我能提供更多信息,但我知道这个异常,它抛出了一个SSL\u CTX\u set\u cipher\u列表:无密码匹配错误 你知道我为什么会出现这个错误以及如何修复吗 以下是来自Chrome的连接信息: Your connection to domain.com is encrypted with 128-b

我正在使用ActiveResource代理CRUD端点,但在尝试连接时出现
无密码匹配
错误。从显式设置SSL版本,到升级本地openssl客户端,再到直接设置密码列表,我已经尝试了一切

我希望我能提供更多信息,但我知道这个异常,它抛出了一个
SSL\u CTX\u set\u cipher\u列表:无密码匹配
错误

你知道我为什么会出现这个错误以及如何修复吗


以下是来自Chrome的连接信息:

Your connection to domain.com is encrypted with 128-bit encryption.

The connection uses TLS 1.0.

The connection is encrypted using AES_128_CBC, with SHA1 for message authentication and RSA as the key exchange mechanism.

The server does not support the TLS renegotiation extension.

使现代化 我使用openSSL在终端中运行以下命令以检查连接:

openssl s_client -showcerts -connect stage.example.com:13902
结果如下:

CONNECTED(00000003)
140735228511072:error:140773F2:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert unexpected message:s23_clnt.c:762:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 308 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---

不太清楚那是什么意思。Chrome可以很好地解析证书。这是OpenSSL的一个错误吗?

看起来您的代码中指定了一个错误的密码,这是一个OpenSSL无法理解的名称。但是如果没有你的代码,就不可能说更多。如果您试图强制使用chrome使用的密码:您必须在openssl中使用AES128-SHA1,而不是AES_128_CBC。“SSL_CTX_set_cipher_list:无密码匹配”-确保您使用的密码来自openssl。在OpenSSL下,
AES\u 128\u CBC
AES128-SHA
。字符串可能类似于“AES256-SHA:AES128-SHA”。