Can't authenticate on IoT Hub - Not authorised

Andrea Previtali 106 Reputation points
2024-04-23T12:14:10.9533333+00:00

Hello everyone,

I'm experiencing a little problem and I don't know how I'm going to solve it.

We are working with a partner of ours, he has your Azure space on which he has an IoT Hub and I have machines that I need to have connected to his IoT Hub.

The machines have to authenticate with X.509 certificates.

I had our partner give me the certificate and the private key to create my certifies (in production I will obviously introduce intermediate elements).

I can't tell if I'm doing something wrong in the .conf file but this happens: I can create the certificates for my devices and I can sign them, but I can't authenticate when certain to connect the device to IoT Hub.

I used a .conf file I was using before, the environment should be the same, the only thing that changes is that our client's key no has password.

Instead, my old configuration was to use a password.

Could this be the cause of my issue?

How can I edit my configuration file?

The source file is taken from the one shown here

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,201 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.