Closed VijayGawade closed 2 years ago
Sorry, I have overseen this issue. TLS is always a complicated topic, so I forward it to our experts.
@KonstantinRitt @ejvr any thoughts?
It is hard to guess what goes wrong there without knowledge of what's actually set to ssl config.
First of all, try connecting to your broker with any other MQTT client.
If that works, connect to QSslSocket's encrypted
, encryptedBytesWritten
, peerVerifyError
and sslErrors
signals (somewhere at src/mqtt/qmqtt_ssl_socket.cpp#L48) and set breakpoints there (or put a meaningful debug message instead).
Either ensure "192.168.1.13" is the adequate host name for your self-signed certificate.
Hi All
I am using Qt 5.9 with QMQTT-Emqx MQTT library for MQTT communication.
Currently, we have locally installed a mosquitto broker and configured it to use an SSL certificate with the client certificate required on Port 8883.
In our app, we connected to the broker with CA & Client certificate with the following code
Also I checked SSL library details as follows:
SSL Library Build Version: "OpenSSL 1.0.2j 26 Sep 2016" SSL Support: true SSL Library Version: "OpenSSL 1.0.2e 3 Dec 2015" In onConnected() function I also able to publish messages successfully But after that following logs are appearing