Page 1 of 1

Share SSL Code

Posted: Tue Apr 21, 2015 3:48 pm
by huafan
I met a lot of difficulties in debugging SSL,very long time,I want to share it, lest anyone detours.
Thanks also to help a lot of ESP8266 official forum staff are given.
1 using SDK V1.0.1_b2 IOT demo,open #define CLIENT_SSL_ENABLE,configuration connection AP and SSL server IP and port,
2 using the new cert.h and private_key.h.
2 compile time using the new libssl.a file.
3 compile and file, if it is the 512KB FLASH needs to be generated
Eagle.flash.bin eagle.irom0text.bin
Because the compiled BIN file is too big, can only support this way.
4 build SSL server. The attachment with a simple SSL server source code.
Set the SSL port on the config.txt.
5 let the device connected to the SSL server.
Exchange and discussion.


我在调试SSL时候遇到了很多的困难,也耗费了很长的时间,在这里我希望能分享一下,免得有人走弯路。
也很感谢ESP8266官方论坛的工作人员给予的很多帮助。

1 使用SDK V1.0.1_b2 IOT demo,打开宏定义#define CLIENT_SSL_ENABLE,配置上连接的AP和SSL的服务器IP和端口,
2 使用新的cert.h 和 private_key.h.
2 编译的时候使用最新的libssl.a 文件.
3 编译并生成文件,如果是 512KB 外部FLASH需要生成
eagle.flash.bin eagle.irom0text.bin
因为编译的BIN文件会太大,只能支持这种方式.
4 搭建SSL服务器.附件中带有 简单的SSL服务器带源码.
在config.txt设置好SSL的端口.
5 让设备连接到SSL服务器

附件中含一个SSL Server和SSL Client,截图为设备连接后发送的数据截图.

Re: Share SSL Code

Posted: Sun May 31, 2015 8:03 am
by rudi
..over 80 download'S

and it has still no thanks?
I now change times.
and start:

(espressif-admin) where is the 1000 thank button? ;)

BIG big thank to you huafan


run's stable in first test.. and i think - is stable enough for longer time,
txs huafan!

best wishes

rudi ;-)

Re: Share SSL Code

Posted: Thu Mar 16, 2017 7:19 pm
by ldsheng
thx a lot.
I'll study it first.