Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QMqttClient connects to a MQTT broker that needs certificate and private key?



  • How can I use QMqttClient to connect to a MQTT broker that use certificate and private key instead of username and password?

    m_client.setUsername("username");
    m_client.setPassword("password");

    but how to connect by using certificate and private key?


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What broker is that ?
    Can you give more details about your current setup ?


Log in to reply