I am trying to make a HTTPS communication with Azure IOTHub through IotHub C SDK. I have gone through the samples provided by the Azure. Where they are actually storing the certificate or the private key in static const char
and passing those in IoTHubClient_LL_SetOption() function along with the IotHub Client Handle.
But for me , I have the certificate in my local machine along with the private key. I do not want to read those files and storing those in parameter. So is there any way I can pass the file path as a parameter to the function without reading the files?
When I am searching for some solutions over net I found they have that interface in their c# SDK:
var cert = new X509Certificate2("/file/path_to_certificate", "123");
Kindly let me know if it is possible to pass the file path as a parameter using IOTHUB C SDK just like the C# or there is any other interface I can use without reading the files.