Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
167 stars 96 forks source link

Using IoT Edge certificate instead of Baltimore certificate #120

Open niswitze opened 3 years ago

niswitze commented 3 years ago

When configuring the IoT Hub device client to use a certificate for my IoT Edge Gateway, in transparent mode, passing my certificate to IoTHubDeviceClient_LL_SetOption doesn't work. I had to modify the certs.c file and add my cert directly to the certificates array.

Is this the supported method or am I doing this incorrectly?

If this is is the only way to get this cert in, would it be possible to add another build flag similar to USE_BALTIMORE_CERT for using an IoT Edge cert instead? Maybe something like build.extra_flags=-DESP8266 -DDONT_USE_UPLOADTOBLOB -DUSE_IOT_EDGE_CERT.