Setting up RabbitMQ MQTT broker with for 2-way SSL

I wrote this tutorial because of the problems which I have faced in setting up 2-way SSL in the Rabbitmq broker. Hope you can figure your problem easily by following this guide.

In two way SSL both certificates are exchanged among server and client and both sides are verifying the certificates.

First, we have to generate certificates let's user guide in the Rabbitmq documentation to generate certificates


git clone https://github.com/michaelklishin/tls-gen tls-gen
cd tls-gen/basic
# private key password
make PASSWORD=bunnies
make verify
make info
ls -l ./result                                                                                                               
Then you will generate the following certificates

local pc


Next, you have to edit the rabbitmq.conf and advanced.conf to setup these certificates

in rabbitmq.conf Add following config ( location /etc/rabbitmq/rabbitmq.conf )

Comments

Popular posts from this blog

IOT Greenhouse project part 1

How to fix FirebaseApp with name [DEFAULT] doesn't exist issue with flutter

Let's Learn NodeMCU(EPS8266MOD) very popular IoT component