Can I reduce the MQTT password length for Azure IoT Hub?

Stanley Lee 1 Reputation point
2022-09-14T01:14:08.113+00:00

Hello.
I am trying to use the Sierra BX3105 module for MQTT communication of Azure IoT Hub.

I've seen that Windows send and receive messages to and from IoT Hub's MQTT.
And when I tried to connect to the MQTT of IoT Hub from the firmware, I ran into a problem.

The password length for this module is limited to a maximum of 60 bytes.
As you can see, generated SAS tokens are at least 100 bytes long.

When I checked the manual of this module, the X.509 authentication function is not supported.
Can I reduce the password length for MQTT?
If not... it would be sad.

Thanks in advance for your reply.

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 27,311 Reputation points
    2022-10-04T12:54:29.61+00:00

    @Stanley Lee Sincere apologies for the delay in response. I missed your reply.

    Upon rechecking, it appears that the module supports X.509 certificate authentication.

    Good, As suggested, please proceed with the X.509 authentication so SAS token passwords are not required.

    I do not know whether importing the certificate to the module is for HTTPS communication only or MQTT-TLS

    It depends on how you want to use. Please go through Understand how X.509 CA certificates are used in IoT and Communicate with your IoT hub using the MQTT protocol

    To answer your specific query regarding Can I reduce the password length for MQTT?

    Unfortunately, there is no possibility that IoT hub can use shorter passwords today.

    Hope this helps. Do let us know if you have further queries. Feel free to comment or reply to this.

    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments