I've been trying to configure AWS IoT to communicate over MQTT using TLS for days on a D1 Mini board and have been running into a road block with authentication.
I've used several AWS IoT Arduino libraries such as this one that hardcodes or uses SPIFFS to store the keys, but they don't seem to be the issue. One solution suggested increasing the timeout in the PubSubClient library, but it doesn't seem to be timing out. They all result in the same wifi debug output, indicating there was a certificate exchange and after exchanging certificates, AWS closes the connection.
Here is the raw output of the ESP debugger.
I've tried many solutions such as creating a certificate through AWS and creating my own certificate following this guide. My certificates also have policies to allow full access to AWS IoT.
At this point I'm going to try a few more arduino libraries or switch services. Any recommendations would be greatly appreciated. Thank you for your time.