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>
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
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>