I've been working with OpenSSL and mosquitto MQTT and I have a question.
So far I only have one client. But how can I connect several clients simultaneously with different certificates to the same MQTT broker?
And how does it work in case of revoking the certificate of one of the clients?
Is it necessary to restart the broker?
Does anyone have an example?
I am using SSL/TLS for secure connection and for this I use the following files:
ca.key
ca.crt
server:
ca.crt
server.key
server.crt
client:
ca.crt
client.key
client.key
and the configuration file is like this:
#Extra Listeners
listener 8883
cafile /Users/Documents/certs/ca.crt
keyfile /Users/Documents/certs/server.key
certfile /Users/Documents/certs/server.crt
#client certifcate settings
require_certificate true
use_identity_as_username true
Thank you!