Skip to content

Cannot do DPS provisioning with TPM on Ubuntu 24.04 #7491

@MiraLak

Description

@MiraLak

When installing iot-edge on a vm ubuntu 24.04, the aziot-identityd fails to get the provisionning from the DPS.
The config.toml is correct.
Here are the iotedge logs:

Dec 10 09:10:45 xxx aziot-identityd[4475]: 2025-12-10T09:10:45Z [INFO] - Starting service...
Dec 10 09:10:45 xxx aziot-identityd[4475]: 2025-12-10T09:10:45Z [INFO] - Version - 1.5.6
Dec 10 09:10:45 xxx aziot-identityd[4475]: 2025-12-10T09:10:45Z [INFO] - Loaded openssl'd Default provider
Dec 10 09:10:45 xxx aziot-identityd[4475]: 2025-12-10T09:10:45Z [INFO] - Provisioning starting. Reason: Startup
Dec 10 09:10:45 xxx aziot-tpmd[3788]: 2025-12-10T09:10:45Z [INFO] - <-- GET /get_tpm_keys?api-version=2020-09-01 {"host": "tpmd.sock"}
Dec 10 09:10:45 xxx aziot-tpmd[3788]: 2025-12-10T09:10:45Z [INFO] - --> 200 {"content-type": "application/json"}
Dec 10 09:10:46 xxx aziot-tpmd[3788]: 2025-12-10T09:10:46Z [INFO] - <-- POST /import_auth_key?api-version=2020-09-01 {"content-type": "application/json", "host": "tpmd.sock", "content-length": "1154"}
Dec 10 09:10:46 xxx aziot-tpmd[3788]: 2025-12-10T09:10:46Z [INFO] - --> 200 {"content-type": "application/json"}
Dec 10 09:10:46 xxx aziot-tpmd[3788]: 2025-12-10T09:10:46Z [INFO] - <-- POST /sign_with_auth_key?api-version=2020-09-01 {"content-type": "application/json", "host": "tpmd.sock", "content-length": "71"}
Dec 10 09:10:46 xxx aziot-tpmd[3788]: 2025-12-10T09:10:46Z [INFO] - --> 200 {"content-type": "application/json"}
Dec 10 09:10:46 xxx aziot-identityd[4475]: 2025-12-10T09:10:46Z [INFO] - Sending DPS registration request.
Dec 10 09:10:46 xxx aziot-identityd[4475]: 2025-12-10T09:10:46Z [ERR!] - Failed to provision with IoT Hub, and no valid device backup was found: DPS client error
Dec 10 09:10:46 xxx aziot-identityd[4475]: 2025-12-10T09:10:46Z [ERR!] - service encountered an error
Dec 10 09:10:46 xxx aziot-identityd[4475]: 2025-12-10T09:10:46Z [ERR!] - caused by: DPS client error
Dec 10 09:10:46 xxx aziot-identityd[4475]: 2025-12-10T09:10:46Z [ERR!] - caused by: Endorsement key is invalid, or does not match the Enrollment.

Device (Host) Operating System
Ubuntu 24.04

Architecture
amd64

Is the TPM not supported? Does anyone have clue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions