Trying to implement TLS inter-node communication, "bad_cert,hostname_check_failed" #10398
-
Greetings allI've been trying to get the rabbitmq cluster running using the TLS inter-node communication for three-node-cluster I'm using tls_gen to generate the SSL certificates on the domain "*.rabbitmq", and all the tests using openssl are working fine: RESULT:
Executing s_client on the server, testing the connection to ports 5671 and 25672 results in the successful verification
But rabbitmq cluster is not starting properly.
I see the same messages on other nodes, who fail to verify and fail to start because of those TLS verification failures. Any help in explaining to me what I'm doing wrong while configuring this would be much appreciated. I'm pasting rabbitmq configuration files bellow: rabbitmq.conf
rabbitmq-env.conf
inter_node_tls.config
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thank you for the mostly complete problem report. It is always good to include software versions when reporting issues. In this case, knowing the Erlang and RabbitMQ version would be nice. You are using wildcard certificates, which require "special handling" when used with Erlang. Most RabbitMQ users do not use wildcard certs. If you do this search - https://www.google.com/search?q=rabbitmq+erlang+wildcard+certificate ...one of the hits is this discussion: https://groups.google.com/g/rabbitmq-users/c/ylwgLhdTGEw ...which leads to this issue: So, your
I will make a note to document this better on our website: rabbitmq/rabbitmq-website#1791 Please confirm that the above configuration addresses your issue. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, lukebakken, this configuration you provided solved the issue and now nodes are forming the cluster. |
Beta Was this translation helpful? Give feedback.
Thank you for the mostly complete problem report. It is always good to include software versions when reporting issues. In this case, knowing the Erlang and RabbitMQ version would be nice.
You are using wildcard certificates, which require "special handling" when used with Erlang. Most RabbitMQ users do not use wildcard certs.
If you do this search -
https://www.google.com/search?q=rabbitmq+erlang+wildcard+certificate
...one of the hits is this discussion:
https://groups.google.com/g/rabbitmq-users/c/ylwgLhdTGEw
...which leads to this issue:
vernemq/vernemq#1485
So, your
inter_node_tls.config
file should be this: