Only local sensu-client connects to rabbitMQ remote clients fail.

Hi,

I’m having issues getting sensu working with external servers connecting to rabbitmq. The local sensu client on the sensu host works perfect.

The remote client is giving me only errors like this.

“[amqp] Detected TCP connection failure”

``

The rabbitMQ server is giving me the following errors.

=ERROR REPORT==== 8-Nov-2016::01:32:13 ===
SSL: hello: tls_handshake.erl:200:Fatal error: handshake failure - handshake_decode_error

``

The rabbitmq.json on the local and external client are the same.

{
“rabbitmq”: {
“host”: “sensu.xxx”,
“port”: 5671,
“vhost”: “/sensu”,
“user”: “sensu”,
“password”: “PASSWORD”,
“heartbeat”: 30,
“prefetch”: 50,
“ssl”: {
“cert_chain_file”: “/etc/sensu/ssl/cert.pem”,
“private_key_file”: “/etc/sensu/ssl/key.pem”
}
}
}

``

The rabbitmq.config file looks like this.

[
{rabbit, [
{auth_mechanisms, [‘PLAIN’, ‘AMQPLAIN’, ‘EXTERNAL’]},
{ssl_listeners, [{“0.0.0.0”, 5671}]},
{ssl_options, [{cacertfile,"/etc/rabbitmq/ssl/cacert.pem"},
{certfile,"/etc/rabbitmq/ssl/cert.pem"},
{keyfile,"/etc/rabbitmq/ssl/key.pem"},
{verify,verify_peer},
{fail_if_no_peer_cert,true},
{ssl_cert_login_from,common_name},
{versions, [‘tlsv1.2’]},
{ciphers, [{rsa,aes_256_cbc,sha256}]}
]}
]}
].

``

The local and remote client run on Debian Testing. With ERLANG 19 and RabbitMQ 3.6.5.

Maybe somebody can point me in the right direction.

Yours sincerely,

John