I use Just-in-Time Registration of Device Certificates on AWS IoT. When the device certificate is registered, the lambda is started. Lambda uses a certificate id to create the name of the thing. For example: THING_66b9071648978494bec3cc2254362f4e9513bd886fb3f57ad9ee3ec9be0db931.
I need to know how aws iot generates a certificate id so that I can dynamically subscribe to the MQTT topics. For example topic: $aws/things/THING_66b9071648978494bec3cc2254362f4e9513bd886fb3f57ad9ee3ec9be0db931/shadow/update