I'm using this client lib on the esp to send data using HTTPS to my emoncms server
https://github.com/Caerbannog/esphttpclientthe data-acquisition from the sensors is done on an atmega328. Then I'm polling the data on the esp from the atmega using I2C and send it to emoncms using JSON in a GET call. So I can use my long-developed atmega code and also take advantage from the WIFI and IP-stack features of the esp. Also I can send the ESP into deep-sleep while the atmega is still aquiring data. Then the esp wakes up, polls data from the atmega, send and going to deep-sleep again. At the moment I'm trying to wake up the esp also from the atmega in case any threshold is reached during data-acquisition.
On my web-server you can see that the connection is really HTTPS using AES and SHA. Also it is TLSv1.1 wich is a kind of legacy, but it is ok for me.
[02/Sep/2015:17:12:32 +0200] 111.222.333.444 TLSv1.1 AES256-SHA "GET /emoncms/input/post.json?node=esp01&json={uptime:970805,temp:24.3,humid:47.6,rssi:-50,vdd:3322}&apikey=mysupersecretapokey HTTP/1.1" 2
My Atmega328 / ESP8266 Board