Signing certificates are not accepted for individual enrollment

Arun75 21 Reputation points
2020-08-21T17:00:47.373+00:00

I am trying to X509 certificate based individual enrollment from java service sdk.

I am getting below error while doing the operation

com.microsoft.azure.sdk.iot.provisioning.service.exceptions.ProvisioningServiceClientBadFormatException: Bad message format! {"errorCode":400004,"trackingId":"c68fc932-7654-4aeb-983c-a5b066d","message":"Signing certificates are not accepted for individual enrollment.","timest
ampUtc":"2020-08-21T16:42:08.6715715Z"}

Reference link: https://video2.skills-academy.com/en-us/azure/iot-dps/quick-enroll-device-x509-java#javasample

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,189 questions
{count} votes

Accepted answer
  1. QuantumCache 20,266 Reputation points
    2020-08-26T22:02:20.793+00:00

    Hello @Arun75

    Thanks for reaching out to us!. Sorry for the delay in response, as the whole document needed to be verified. Both scenarios Group and Individual.

    We are able to successfully provision/run the Java sample Code in this scenario. Not able to repro the issue reported by you.

    Here are the validation steps which gives an overview:

    After the Group enrollment using x509-success, we worked on Individual device enrollment which worked as well.

    Below is the summary snaps of Modifications to enroll a single X.509 device

    Code changes: ServiceEnrollmentSample.java

    20568-image.png

    Changes made to the Main method and removed the unwanted variables as per instructions.

    20569-image.png

    Comment out the last lines, so that the Enrollments are not deleted.

    20549-image.png

    Finally, Build and run the project.

    20510-image.png

    Troubleshooting suggestions on your issue:

    Please verify if you are using the right certificate for this scenario as per the instructions?

    20642-image.png

    20643-image.png

    Please confirm if the .java file is well-edited as per all instructions? Please rebuild and run the project for every small modification as well.

    20639-image.png

    Please let us know if you need further help in this matter.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.