Hello Makowiecki Adrian,
The error logs mentioned suggests that the EST server does not recognize or trust the device’s credentials. You can follow the below steps to check and proceed:
- Confirm EST Server Authentication: - Double-check the
cert_issuance.est.auth
section: - Ensure theusername
andpassword
fields are correct and match the credentials configured on your EST server. - Verify that the EST server's access control lists (ACLs) allow the device to authenticate successfully. - Certificate Chain Validation: - The
trusted_certs
field points tocacert.crt.pem
. Ensure that this file contains the correct root CA certificate for the EST server. - Confirm the certificate chain is intact and the IoT Edge device can validate it. - Test EST Endpoint: - Use the
curl
command oropenssl
to test the EST URL manually and verify that the server responds correctly. Example:bash curl -u [username]:[password] [https://localhost:8085/.well-known/est/cert](https://localhost:8085/.well-known/est/cert"https://localhost:8085/.well-known/est/cert")
- Ensure the response does not show authentication errors. - Verify Common Name: - The
common_name
set to"device-name"
should match the expected identity on the EST server. Check if there is a mismatch between the device registration and the EST server's settings. - Adjust EST URL: - The
default
URL for EST is set to[https://localhost:8085/.well-known/est
.](https://localhost:8085/.well-known/est%60."https://localhost:8085/.well-known/est%60.") If the EST server is hosted on a different machine, replacelocalhost
with its IP address or DNS name. - Network Connectivity: - Ensure the device can connect to the EST server (firewall and network rules might block communication). - Confirm the port
8085
is open and accessible. - Edge Runtime Restart: - After making adjustments to the configuration, restart the Azure IoT Edge runtime:
bash sudo iotedge system restart
Please go through this document for detailed information on how to manage trusted root certificates : https://learn.microsoft.com/en-us/azure/iot-edge/how-to-manage-device-certificates?form=MG0AV3&tabs=windows#manage-trusted-root-ca-trust-bundle
If you have any further query do let us know.
Thank you!