locked
Trouble with mosquitto MQTT connection to Azure IoT Hub RRS feed

  • Question

  • Hi Team,

    I am trying to connect the mosquitto mqtt broker with Azure IoT Hub. However, I cannot connect to the IoT Hub.  

    I did try three different method for authentication to Azure IoT Hub

    1) Shared Access Signature

    With this option, I can connect the mosquitto to Azure IoT Hub using its moquitto_pub/sub.exe, but not using the mosquitto running as service with config file.

    2) CA-Signed

    With this option, I had created self-singed CA as Root CA for Azure IoT Hub, registered it to Azure IoT Hub. Created the client certificate signed with Root CA certificate.

    But this fails to connect via moquitto_pub/sub.exe and mosquitto running as service with config file.

    From the error message,  "certificate verify failed" it seems that the IoT Hub is trying to do Proof of Possession checks.

    Using the same certificate with IoT-Hub-SDK works fine.

    3) Self-signed,

    With this option, i had no root ca, but self generated cert was used for a device.

    But this fails to connect via moquitto_pub/sub.exe and mosquitto running as service with config file.

    Can you please assist me in this regards?

    Regards,

    Arpit Panchal



    Wednesday, March 6, 2019 3:49 AM

All replies