esp8266-dev icon indicating copy to clipboard operation
esp8266-dev copied to clipboard

example using secure server

Open whyameye opened this issue 9 years ago • 2 comments

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?

whyameye avatar Nov 01 '15 23:11 whyameye

I On Nov 1, 2015 3:19 PM, "whyameye" [email protected] 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.

neufuture avatar Nov 01 '15 23:11 neufuture

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.

nqd avatar Nov 02 '15 06:11 nqd