The next step has been configuring the RabbitMQ broker I have installed on my RPI to use TLS/SSL
It has worked.
The configuration file is located under /etc/rabbitmq
This is the final configuration, enabled for SSL and MQTT.
MQTT port used is 8883 (the default).
[{rabbit, [{loopback_users, []},
{ssl_options, [{cacertfile,"/etc/rabbitmq/certs/ca.crt"},
{certfile, "/etc/rabbitmq/certs/server.crt"},
{keyfile, "/etc/rabbitmq/certs/server.key"},
{password, “<insert here>"}
]}
]},
{rabbitmq_mqtt, [{default_user, <<"guest">>},
{default_pass, <<….>>},
{allow_anonymous, true},
{vhost, <<"/">>},
{exchange, <<"amq.topic">>},
{subscription_ttl, 1800000},
{prefetch, 10},
{ssl_listeners, []},
%% Default MQTT with TLS port is 8883
{ssl_listeners, [8883]},
{tcp_listeners, [1883]},
{tcp_listen_options, [{backlog, 128},
{nodelay, true}]}]}
].
From the RabbitMQ Web UI, accessible at the URL:
http://iotgateway1:15672/#/
you can easily monitor the flow of messages.
Some snapshot from the WebUI
No comments:
Post a Comment