I have a mosquitto MQTT broker running on a Windows machine. I’m trying to control the topics to which a certain user can subscribe an publish.
I’ve created a test user (“test”) and added the user to the passwords file.
The client can connect to the broker and authenticate via username, password and SSL.
It can also receive published messages.
But whenever I add the ACL file to the per listener configuration, the client is not able to receive any published messages.
Here is my global configuration
per_listener_settings true
Here is my per listener configuration.
listener 9996
cafile C:Certificatesca.crt
certfile C:Certificatesserver.crt
keyfile C:Certificatesserver.key
require_certificate true
use_identity_as_username true
acl_file C:mosquittoaccesscontrol.acl
And here is my ACL file configuration
user test
topic #