MQTT over WebSockets with TLS [message #1848396] |
Wed, 01 December 2021 02:35  |
Eclipse User |
|
|
|
We are using the mosquitto.conf (attached in the post)
Have generated ca.crt, server.crt and server.key using openssl,
and am able to establish secure mqtt communication, when only protocol mqtt is specified in the mosquitto.conf,
Our requirement is to achieve TLS based Secure MQTT Communication over WebSockets, please suggest if the mosquitto conf which is attached is the correct one, for the use case, and then if there are any javascript client libraries which we can use to connect to the broker, so far have tried the PAHO client with which we are not able to connect.
Tried MQTT Explorer that connects in case of Encrypted mode but only when there is no additional certificate specified, in which case the doubt is how is TLS possible without a certificate.
|
|
|
|
Re: MQTT over WebSockets with TLS [message #1849939 is a reply to message #1848418] |
Wed, 09 February 2022 01:52  |
Eclipse User |
|
|
|
I tried to create new set of certificate with the common name as the hostname of my system on which the broker is hosted, and updated the config as well, but in this configuration also I'm not able to establish websocket connection, whereas I'm able to connect when the protocol is mqtt in the mosquitto.conf, only in case of websockets is where I am facing the issue where my code throws an exception stating AuthenticationException: The remote certificate is invalid according to the validation procedure.
|
|
|
Powered by
FUDForum. Page generated in 0.05058 seconds