nqd / esp8266-dev

ESP8266 Wifi SoC dev, with OTA made easy
43 stars 12 forks source link

example using secure server #10

Open whyameye opened 8 years ago

whyameye commented 8 years ago

I have tried this with your demo server and it works great! Thank you!

From looking at user_main.c and user_config.h it appears that it might be possible to use this with a secure server, perhaps SSL. Do you have an example of this or any tips on how I might change the configuration to do this?

neufuture commented 8 years ago

I On Nov 1, 2015 3:19 PM, "whyameye" notifications@github.com wrote:

I have tried this with your demo server and it works great! Thank you!

From looking at user_main.c and user_config.h it appears that it might be possible to use this with a secure server, perhaps SSL. Do you have an example of this or any tips on how I might change the configuration to do this?

— Reply to this email directly or view it on GitHub https://github.com/nqd/esp8266-dev/issues/10.

nqd commented 8 years ago

You will just need to set secure flag to enable ssl. Keep in mind that espressif adopt axtls, then do not support tls v1.2 yet. And the client do not verify certificate by default, to avoid MIM attack, you should enable this by adding this option before make socket connection; you also should get the chain certificates of the server, flash it to the chip before running.