如何在SSL中设置RabbitMQ Dynamic Shovel

ssm49v7z  于 2023-08-05  发布在  RabbitMQ
关注(0)|答案(1)|浏览(108)

我想设置一个Shovel,其中目标RabbitMQ配置为启用TLS。
我无法创建铲子,铲子停留在初始状态。
我在两个独立Docker容器中有两个不同的RabbitMQ示例,其中一个示例通过主机的端口5671(SSL)和6671(SSL)公开。
我正在使用RabbitMQ管理插件来建立铲子
以下是连接的详细信息

源AMQP URI:

amqp://admin:pass@localhost:5672 (non-SSL)

字符串

目的AMQP URI

amqps://localhost:6671?cacertfile=/data/shared-file/certificates/ca_certificate.pem&certfile=/data/shared-file/certificates/client_certificate.pem&keyfile=/data/shared-file/certificates/client_key.pem&verify=verify_peer&server_name_indication=MyTestCA


这里会有什么问题呢?
好心帮忙

lg40wkob

lg40wkob1#

如果你已经将远程服务器的Ca添加到了RabbitMQ中,那么尝试一下。
出发地:

amqps://localhost:6671?cacertfile=/data/sharedfile/certificates/ca_certificate.pem&certfile=/data/sharedfile/certificates/client_certificate.pem&keyfile=/data/sharedfile/certificates/client_key.pem&verify=verify_peer&server_name_indication=MyTestCA

字符串
收件人:示例(加密):

amqps://myhost:5671?cacertfile=/path/to/ca_certificate.pem&certfile=/path/to/client_certificate.pem&keyfile=/path/to/client_key.pem&verify=verify_peer&server_name_indication=myhost


https://www.rabbitmq.com/uri-query-parameters.html
http://localhost:15672/#/dynamic-shovels
在管理中有URI的例子。

amqps://server-name?cacertfile=/path/to/cacert.pem&certfile=/path/to/cert.pem&keyfile=/path/to/key.pem&verify=verify_peer&fail_if_no_peer_cert=true&auth_mechanism=external
connect to server-name, with SSL and EXTERNAL authentication

相关问题