Adding SSL/TLS Support to the ESP8266

Adding SSL/TLS Support to the ESP8266

In this post we will introduce some new features about securing the Internet of Things, like in our previous post, Securing the Internet of Things, where we introduced SSL/TLS support for the Arduino MKR1000. In this case we are working with the well-known ESP8266, and YES! it supports also secure TLS connections to our Internet of Things platform. This little device, and thanks to the community support, now integrates TLS support by software. In our tests, we are not able to notice any significant performance issues, and the connections seems to be stable as always. So we have decided that the ESP8266 devices will connect by default using secure sockets. So, you can update the Arduino libraries to 2.5.0 to start using this security feature.

If you enable the debug output in your ESP8266 sketch, you will be able to see how the device is now connecting by default using secure connections. We have improved the debug output to actually detect if the connection is secured or not.