Configure MQTT mosquitto server for username + client certificate

42 Views Asked by At

I want to configure mosquitto MQTT broker in way that a client connecting to it must provide username + client certificate. Here username provided must be matching to CN of the passed client certificate.

This is the same thing what Azure event grid is doing. So I wanted to simulate the same thing with mosquitto for testing purpose.

I have tried to set require_certificate and use_identity_as_username to true, but with this configuration, broker is allowing any user name while connecting to broker. I want broker should verify if the user name provided in connect packet is matching with CN in client certificate. Any plugin would help?

0

There are 0 best solutions below