I followed the instructions to create a transparent gateway and successfully have a leaf device send telemetry to the IoT Hub via the gateway. However, I noticed that as soon as I set the certificate on the gateway, all modules installed (except for the Agent and the edgeHub) on the Gateway stopped functioning (even with the sample tempSensor). The Azure portal even showed that my edge gateway is disconnected (the telemetry still got through). I tried the log on the tempSensor module and it shows that there are some issues with the certificate (shown here)
Do you have any idea how to solve the problem? It is kind of pointless to gateway without any module on it.
Also, I want to pre-process the received messages from the leaf devices before sending to the IoT Hub. I know how to route the messages between modules (as in the tutorials) but how to route the messages from the leaf devices to a module?