Sample connection to AWS using X.509 certificate #25
-
Hi - any chance that you could post an example of a connection to AWS using X.509 certificates? I'm struggling with the connection and just get a timeout from my IoT endpoint. I'm a newbie to AWS - I've got an app working with X.509 certificates based on the AWS sample but I'd prefer to use a lighter Swift Package-based implementation (like this) if possible.... Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Hi, I won't have time to look at this until later in the day. But could you answer some questions in advance
|
Beta Was this translation helpful? Give feedback.
-
Ok here is an end to end version of getting AWS IoT working with X.509 certificates. At least it worked for me
You now have everything setup AWS side
Now the code below should get you connected. This is assuming you have added the p12 and der files you created earlier into your bundle. You should replace
I hope this helps |
Beta Was this translation helpful? Give feedback.
Ok here is an end to end version of getting AWS IoT working with X.509 certificates. At least it worked for me
aws iot describe-endpoint --endpoint-type iot:Data-ATS
. Remember this you'll need it later