Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84074

TransportInvalid error when establishing a secure connection using QtMqtt

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Cannot Reproduce
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Component/s: MQTT, Network: SSL
    • Labels:
      None
    • Platform/s:
      macOS, Windows

      Description

      I am using the [open source QtMqtt module |https://github.com/qt/qtmqtt] to establish a secure connection to AWS broker. I have been following Cloud providers and telemetry via Qt MQTT blog post and cloned[ QtMqtt cloud connectors repository|https://github.com/mauricek/qtmqtt_cloud_connectors]. 

      Whenever I try to establish a secure connection using the code I cloned from the repository mentioned above I get the error message 

       

      QMqttClient::TransportInvalid 256 The underlying transport caused an error. For example, the connection might have been interrupted unexpectedly.

       

      I also tried to modify the code and used test.mosquitto.org as a broker with port 1883 (unsecured connection) and I was able to have a successful connection. But, when I try test.mosquitto.org with port 8883 and their certificate for a secure connection, I got the error described above.

       

      I tried that on both MacOS 10.15.4 and Windows 10 using Qt 5.14.2

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            mkalinow Maurice Kalinowski
            Reporter:
            m_alshehab Mustafa Alshehab
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes