MQTT with TLS to Azure IoT Hub

Hi all,

I have been recently working with a customer on a secured communication between an Edge Controller and Azure IoT Hub via MQTT.
By using WAGOAppCloud library and WAGO protocol FBs, we were able to configure the communication using SAS Tokens.
Our ultimate goal is to have a TLS configured with .x509 certificates and main CA cert.
I have already generated some exemplary certificates/keys using example from Azure:
Tutorial - Create and upload certificates for testing - Azure IoT Hub | Microsoft Learn

Even though CA cert is accepted by IoT Hub, there seems to a problem with uploading generated .cert and .perm files to Edge Controller and selecting them for Cloud connection. When private key with .key extension is selected instead, it gets past validation process but controller cannot establish connection.
Note: NTP client and DNS server are both configured on a controller and working. Connection type has been tested with both “Azure” and “AnyCloud” (and “Native MQTT”)

My question is: does anyone on the forum have a working example of similar setup and have used .x509 certificates before (self-generated or purchased)?

Thank you in advance.

Marcin

Hi all,

I have found the answer to above issue - all steps are described here:

How To: WAGOController & Azure IoT Hub over MQTT with TLS - IoT Partner Technology - WAGO Open Source Community

1 Like