Using Cognito Identity Pool and CreateKeysAndCertificate Workflow with SDK V2 for provisioning Android devices #606
Unanswered
KamleshAtTray
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In my previous implementation using SDK v1, I connected Android devices to AWS IoT Core by leveraging the Cognito Identity Pool ID. This approach used the AWSIotClient with CognitoCachingCredentialsProvider for authentication and certificate creation. Here's the relevant code:
This workflow uses the Cognito Identity Pool for authentication, then calls CreateKeysAndCertificate to generate a certificate, which is then stored in a keystore. The policy is attached to the newly created certificate.
I’m looking to implement the same functionality using SDK v2 and would like to know if it’s possible to use the Cognito Identity Pool for authentication and certificate creation, without relying on the Fleet Provisioning sample. Is there a recommended approach in SDK v2 to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions