Hi everyone,
I'm experiencing an issue when establishing a secure connection using the Azure IoT Operations connector for OPC UA to an OPC UA server. The error message I received after adding an asset is:
{
{"errors":[{"code":400,"message":{"title":"Disconnected","detail":"Session creation failure","lastTransitionTime":"2025-03-13T12:54:19.6823734Z","reasons":{"StatusCode":"BadNoCommunication","SimbolicId":"BadNoCommunication","Message":"Error establishing a connection: Error received from remote host: Certificate validation failed. UntrustedRoot: Eine Zertifikatkette wurde zwar verarbeitet, endete jedoch mit einem Stammzertifikat, das beim Vertrauensanbieter nicht als vertrauensw\u00FCrdig gilt.\r\n"}}}]}
Error establishing a connection: Error received from remote host: Certificate validation failed. UntrustedRoot: A certificate chain was processed, but ended with a root certificate that is not trusted by the trust provider.
I have configured the environment according to the Microsoft documentation, including the setup of a self-signed application instance certificate with cert-manager and the trusted certificates list in Kubernetes.
The OPC UA Server has security settings set to none and the authentication setting is anonymous.
I have added an asset endpoint using this command:
az iot ops asset endpoint create opcua --name -asset-endpoint -g --instance --target-address --security-mode none --security-policy none
I can reach the OPC UA server using UaExpert.
I keep notice that the OPC UA server puts the connector of OPC UA certificates aio-opc-opcuabroker [...].der is in the rejected PKI folder.
Despite these checks, the error persists. Could anyone advise on potential causes for this error and suggest troubleshooting steps?
Thank you in advance