Unable to connect MQTT Client to AWS IoT using ATWINC1500
Requesting assistance on how to securely connect to AWS IoT MQTT broker on port 8883 using ATWINC1500. As I understand from documentation, 3 things are required:
- Private key
- Client certificate
- Root certificate
I have created a 'thing' in AWS IoT Core, downloaded it's keys, certificate and flashed the private key and certificate to ATWINC1500.
This gets updated successfully, and I can read and confirm the same.
I have flashed all root certificates for AWS + Mosquitto test broker
Same code is used to connect with test.mosquitto.org and my AWS endpoint on port 8883. Connections works fine with mosquitto broker (it does not require client certificate), while it is denied/fails with AWS IoT. I am receiving error code as -12 on received socket.
Can someone share an example or a document on how to identify certificate installation and secure connection using ATWINC1500 ? Am I missing something here or doing something wrong ?
Below is my hardware and software configuration
ATWINC1500 Firmware: 19.5.2
post edited by karanbanthia - 2021/02/24 13:21:19