You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to conect simulated device (.net core console app) to IOT hub via azure Device Provisioning Service. this is based on x.509 cetificates (root+ interimidiate certificate).
I created the enrollment group ok, then uploaded the root certificate and completed verification.
After that generated the device certificate from root certificate and tried to connect to IOT hub using sample code from below link:
anything missing in the setup that is causing this error?
also I there any rest api exposed by azure DPS to register device (instead of using Azure Devices/Client SDK)
The text was updated successfully, but these errors were encountered:
You seem to be using the C# SDK, not the Java SDK. Since this is the issues page for the Java SDK, I'm closing this issue as off-topic. I recommend filing this issue on this page instead.
OS - Windows 10
.net Environment - .net core 2.1
SDK - Microsoft.Azure.Devices.Client - 1.21.0
Microsoft.Azure.Devices.Provisioning.Client - 1.4.0
Microsoft.Azure.Devices.Provisioning.Transport.Amqp - 1.1.9
Microsoft.Azure.Devices.Provisioning.Transport.Http - 1.1.6
Microsoft.Azure.Devices.Provisioning.Transport.Mqtt - 1.1.8
Description of the issue:
I'm trying to conect simulated device (.net core console app) to IOT hub via azure Device Provisioning Service. this is based on x.509 cetificates (root+ interimidiate certificate).
I created the enrollment group ok, then uploaded the root certificate and completed verification.
After that generated the device certificate from root certificate and tried to connect to IOT hub using sample code from below link:
https://github.com/Azure-Samples/azure-iot-samples-csharp/tree/master/provisioning/Samples/device/X509Sample
After having all setup when I tried to connect to IOT bub I'm getting below error, tried all protocol - Amqp,Http,Mqtt...
Microsoft.Azure.Devices.Provisioning.Client.ProvisioningTransportException
HResult=0x80131500
Message={"errorCode":401002,"trackingId":"408d5ad7-aa7c-45a1-b19a-e4af41ccf54b","message":"CA certificate not found.","timestampUtc":"2019-08-23T09:17:53.762099Z"}
Source=
StackTrace:
private static string s_idScope = "XXXXXXXX";
private const string GlobalDeviceEndpoint = "global.azure-devices-provisioning.net";
private static string s_certificateFileName = "simulateddevicecert.pfx";
anything missing in the setup that is causing this error?
also I there any rest api exposed by azure DPS to register device (instead of using Azure Devices/Client SDK)
The text was updated successfully, but these errors were encountered: