Root Certificate Generation for TLS session between microtroller and Azure Edge (in hex)

Sulav Lal Shrestha 361 Reputation points
2022-01-19T21:03:01.08+00:00

Hello,

I am able to send telemetry from microcontroller to IOT hub (using legacy iot mqtt client).
I am trying to send the telemetry to IOT edge for which I have generated the root certificate.
I want to use that certificate for establishing TLS session.
The certificate seems to be in DER encoded and in hex format.
However, I am not able to find the encoding for converting DER encoded certificate to hex format.
I have tried Windows-1252,1254,1257 encoding with either CR or LF newline characters.
But, everytime I get parsing error.

Can anyone help me out on this?

I have attached the certificate used for establishing TLS session to communicate with IOT hub.

Thanks,
Sulav

166551-azure-iot-cert.txt

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
541 questions
Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
324 questions
{count} votes

Accepted answer
  1. Tiejun Zhou 1,126 Reputation points Microsoft Employee
    2022-01-21T01:16:29.507+00:00

    Hi @Sulav Lal Shrestha , you can use xxd command from Linux environment to convert a DER format certificate to hex format C array.

    xxd -i <path_to_cert>
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful