gpt4 book ai didi

ssl - 无法与 rabbitmq 建立 ssl 连接

转载 作者:太空宇宙 更新时间:2023-11-03 12:54:51 25 4
gpt4 key购买 nike

我正在尝试与 rabbitmq 代理建立 ssl 连接。我关注this page帮助我,我找到了我的错误,但我不知道该由谁来解决。我被困在与经纪人的测试连接中:

openssl s_client -connect localhost:5671 -cert client/cert.pem -key client/key.pem -CAfile testca/cacert.pem

CONNECTED(00000003)
write:errno=104
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 0 bytes and written 289 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
SSL-Session:
Protocol : TLSv1.2
Cipher : 0000
Session-ID:
Session-ID-ctx:
Master-Key:
Key-Arg : None
PSK identity: None
PSK identity hint: None
SRP username: None
Start Time: 1470206187
Timeout : 300 (sec)
Verify return code: 0 (ok)
---

我没有日志,但我需要接受 AMQP 连接

#Rabbimq.conf
[
{rabbit, [
{ssl_listeners, [5671]},
{ssl_options, [{cacertfile,".../testca/cacert.pem"},
{certfile,".../server/cert.pem"},
{keyfile,".../server/key.pem"},
{ciphers, [{rsa,aes_256_cbc,sha256}]},
{verify,verify_peer},
{fail_if_no_peer_cert,false}]}
]}
].

我使用的证书是通过文档验证、验证和创建的。

我认为是这个问题不允许我执行 ssl 连接。

谢谢

编辑:我在/var/lib/rabbitmq 与用户 rabbitmq 创建了证书,这样权限就正确了,服务器可以访问证书。

最佳答案

在我替换 rabbitmq.config 后,一切都对我有用

{certfile,".../server/cert.pem"},

到完整的文件路径。

{certfile,"/data/server/cert.pem"}

当rabbitmq找不到或无法读取证书文件时什么都不说。

检查证书文件的权限!

关于ssl - 无法与 rabbitmq 建立 ssl 连接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38737326/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com