TLS authentication for mosquitto_sub [message #1852472] |
Tue, 17 May 2022 12:27 |
Nicola Fiorello Messages: 1 Registered: May 2022 |
Junior Member |
|
|
Hi,
I am having some troubles with MQTT authentication via TLS.
I was given this information to access a remote MQTT broker:
- Host
- Port (8883)
- Username
- Password
and I can easily authenticate using GUI clients (like MQTT.FX or MQTTX for windows). In these interfaces, I just have to type the data above and choose "SSL/TLS with CA signed Server". Doing this, everything works even if I initially have no certificates or keys.
I am trying to subscribe to a topic on that broker from Linux CLI using mosquitto_sub, but I can't figure what sequence of operations I should do with certificates to authenticate like MQTTX does.
I tried generating a new certificate and signing it, I tried downloading server certificate and passing it as --cafile, but I am not guessing the right combination of actions, since I always get the following error:
OpenSSL Error[0]: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
Can anyone help please?
|
|
|
Powered by
FUDForum. Page generated in 0.01788 seconds