Azure / iotedge

The IoT Edge OSS project
MIT License
1.45k stars 458 forks source link

IoT Edge installation and configuration issues #7322

Closed wudiqiang2024 closed 1 month ago

wudiqiang2024 commented 1 month ago

I installed Azure IoT Edge on ubuntu-22.04 according to Microsoft documentation.

image

The configuration file is as follows

 [provisioning]
 source = "manual"
 iothub_hostname = "xxx.azure-devices.net"
 device_id = "my-device-id"

 [provisioning.authentication]
 method = "x509"
 identity_cert = "file:///var/aziot/certs/xxx.pem"
 identity_pk = "file:///var/aziot/secrets/private-key.pem"

The private key file "private-key.pem" is generated using the tpm2-openssl software and the openssl 3 provider

image

Use the command "iotedge system logs" to view the log and find the following error log

image

Please help me

  1. Does this mean that my IoT edge failed to start?
  2. The private key is protected by TPM, how can I use it normally in IoT edge?
  3. Or is there any other solution?

Thank you very much!

lfitchett commented 1 month ago

Duplicate of https://github.com/Azure/iot-identity-service/issues/620