Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » TLS authentication for mosquitto_sub
TLS authentication for mosquitto_sub [message #1852472] Tue, 17 May 2022 12:27
Nicola Fiorello is currently offline Nicola FiorelloFriend
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?
Previous Topic:Pub/Sub messages are not delivered - No error seen
Next Topic:Error: Problem setting TLS options: File not found
Goto Forum:
  


Current Time: Fri Mar 29 00:40:04 GMT 2024

Powered by FUDForum. Page generated in 0.01788 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top