Forum Discussion
Azure certification for x509 authentication device giving error
Hi,
Trying to get my device azure certified. The device is x509 certified authentication method and is tested on an existing DPS and IOT hub.
When tried to test the device for azure certification, under projects, created new project, provided necessary initial data. When trying to "Connect & test" -> "Azure Certificed Device" -> "View Tests" ->"Device Connectivity/Authentication" -> "Authentication method", by default its "symmetric keys", tried to change the dropdown to "x509 certificate", i get an error "Enrollment already exists" and cannot change the the authentication method.
Can anyone let me know where to change the authentication method for the particular project while creating.
Regards,
tjayaprakash
1 Reply
- keithkeFormer Employee
tjayparakash This issue is due to your test certificate subject being overly generic. IE: "mydevice". It's a shared X.509 enrollment testing space so someone else has already used the subject name you choose.
When creating your test certificate, you can set the subject to the project GUID (displayed in the URL of the project) so it's always unique.
If you're using the test cert creation scripts from https://github.com/Azure/azure-iot-sdk-c/blob/main/tools/CACertificates/CACertificateOverview.md, this would be the command.
./certGen.sh create_device_certificate_from_intermediate "<Insert GUID here>"