0

I'm setting a new device on Azure IoT devices, and instead of uploading certification manually i want to be able upload it via code.

I created an Azure IoT device with SSL authentication, i have created the certification in the back end, got the primary thumbprint and the second one. And to the best of my understanding the this certification need to upload to the Azure portal.

And instead of uploading certification manually i want to be able upload it via code. Does it possible? or each time i need to upload it manually?

Thanks in advance.

Avi Siboni
  • 686
  • 7
  • 16

1 Answers1

2

Here is the rest API to upload the certificate to the IoT hub. See https://learn.microsoft.com/en-us/rest/api/iothub/certificates/createorupdate. You can use it to add new or replace existing certificate.

Md Farid Uddin Kiron
  • 16,817
  • 3
  • 17
  • 43