Share SSL Code

Posts: 32
Joined: Sun Mar 15, 2015 2:30 pm

Share SSL Code

Postby huafan » Tue Apr 21, 2015 3:48 pm

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.


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
4 搭建SSL服务器.附件中带有 简单的SSL服务器带源码.
5 让设备连接到SSL服务器

附件中含一个SSL Server和SSL Client,截图为设备连接后发送的数据截图.
SSL连接截图.jpg (221.15 KiB) Viewed 16392 times
(378.08 KiB) Downloaded 1576 times
(668.45 KiB) Downloaded 1483 times

User avatar
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

Re: Share SSL Code

Postby rudi » Sun May 31, 2015 8:03 am

..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 ;-)

love it, change it or leave it.

Posts: 2
Joined: Thu Mar 16, 2017 7:00 pm

Re: Share SSL Code

Postby ldsheng » Thu Mar 16, 2017 7:19 pm

thx a lot.
I'll study it first.

Who is online

Users browsing this forum: Baidu [Spider] and 11 guests