AWS IoT Fleet Provisioning doesn't publish certificate response

0

Good afternoon,

I have created a fleet provisioning template but when I publish to "$aws/certificates/create/json" the IoT backend does not publish a response.

Region: us-east-2
Cloudwatch log output: (trimmed)
EVENT:MQTT Client Connect MESSAGE:Connect Status: SUCCESS
EVENT:MQTTClient Subscribe TOPICNAME:$aws/certificates/create/json/accepted MESSAGE:Subscribe Status: SUCCESS
EVENT:MQTTClient Subscribe TOPICNAME:$aws/certificates/create/json/rejected MESSAGE:Subscribe Status: SUCCESS
EVENT:PublishEvent TOPICNAME:$aws/certificates/create/json MESSAGE:PublishIn Status: SUCCESS
EVENT: CreateKeysAndCertificate Status: SUCCESS MESSAGE: Successfully created keys and certificate with id xxx

I would expect this to be followed by a PublishOut event. I can verify that the certificate is generated and pending activation but my client never gets a response.

Please let me know how to solve this issue.

asked 3 years ago596 views
2 Answers
0

Finally figured it out, you need to set a client ID and have a non-zero client ID length in your connection packet to the broker.
If the client ID length is zero the broker should generate a random client ID, which judging by the logs it does correctly (Eg: '$GEN/a5e20039-82c0-4069-a0ff-9a86d8dd2b03') but the backend does not publish a certificate creation response

answered 3 years ago
0

I was having the same issue and it was driving me crazy. Thanks for the solution!

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions