0
votes

I have setup a group enrollment in the the Azure Device provisioning service with a root certificate that has been validated.

Using openssI I created root and leaf certificates. If I run a cmake on the custom_hsm using the 'c' azure iot sdk's and providing the leaf cert, private key, and common name, should this allow me to then compile and run the prov_dev_client_sample.c (with correct scope and url) without having to build the visual studio Azure_IoT_sdks.sln.

I am currently running on Linux and would like to know if it's possible to bypass that step of building the visual studio solution.

Please, let me know if clarification is needed. Question should be understandable my MS devs who monitor azure-iot-hub.

2

2 Answers

1
votes

prov_dev_client_sample.c has list of dependencies (covered by the solution files) and those are necessary to compile the source file successfully. You didn't mention the reason you don't want to build the sln. If you simply want to use such functionality without depending on another project structure, you can look into CMakeLists.txt and create the one for yourself .. i.e. cmake . -G "Visual Studio 14"

0
votes

In addition to Ozzz's mention, this cmake command cmake -Duse_prov_client:BOOL=ON .. will enable provisioning device sdk. After built, you will find the targets include provisioning client samples in cmake directory.

cd azure-iot-sdk-c
mkdir cmake
cd cmake
cmake -Duse_prov_client:BOOL=ON ..
cmake --build .

This document described how to set up a development environment for the C SDK on Ubuntu.