Forum Discussion
tjayparakash
Jan 24, 2023Copper Contributor
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 certifi...
keithke
Feb 15, 2023Former 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>"