Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » mosquitto_connect returns success with failing TLS connection(mosquitto_connect TLS )
mosquitto_connect returns success with failing TLS connection [message #1820949] Mon, 03 February 2020 07:56
Götz Friedrich is currently offline Götz FriedrichFriend
Messages: 1
Registered: January 2020
Junior Member
Hi all,

we are using mosquitto-1.6.3 and in our project we need to establish a TLS connection from our client to the broker.

We use mosquitto_tls_set() to configure a cafile and finally call mosquitto_connect().
In case the cafile is valid all works fine.

But now the cafile got invalid and finally the TLS connection could not be established, failing with:
"[level 8] 'OpenSSL Error: error:14090086:SSL routines:ssl3_get_server_certificate:ce..."

Still the mosquitto_connect() call returns still MOSQ_ERR_SUCCESS, indicating NO failure.

How can we, from application point of view, know the connection was not established?
Is waiting for some time and verify the configured connectCallback function (set via mosquitto_connect_callback_set()) is not called the only way?
SSL directly reports an error, but with that solution we need to wait for a difficult to define timeout.

-Best regards, Götz-
Previous Topic:How do I backup/move the broker?
Next Topic:mqtt broker lengh error
Goto Forum:
  


Current Time: Sat Oct 31 05:32:42 GMT 2020

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

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

Back to the top