I am currently working on a Home Automation project. The following is my setup.
A ESP8266 WiFi module will be connected to various sensors. A light web server will be running on the module. There will be a Linode Cloud deployed running certain NodeJS scripts and MongoDB database. The mobile application(Client) will be sending requests to cloud to control and monitor various sensors. I will be securing the connection between the application and cloud using JSON Web Tokens. Also I will try to use HTTPS to secure this connection.
I am confused on how to secure the communication between the Cloud server and the ESP8266 module. I did a lot of research. Got to know certain concepts but could not get a clear and complete picture. Someone please guide me. Thank You.