SSL wih signed certificates
-
- Posts: 7
- Joined: Thu Jun 04, 2015 2:59 pm
SSL wih signed certificates
Postby jpenninkhof » Thu Jun 04, 2015 3:25 pm
I have noticed that if I used a self-signed certificate on a test-server, the handshake seems to work well though. But for more serious projects, this would need to be able to run against https services (e.g. public cloud services) with signed certificates as well. I'm really puzzled why it wouldn't work on signed certificates though. If you have any insights you could share, it would be greatly appreciated.
It would be great if Espressif could provide more details in this area. Ultimately, I think it is best to provide the source code of the libssl module, but it might already be very helpful if a list of error codes and their explanation would be published. Using this list it may become easier to troubleshoot/debug this nasty issue.
Espressif, if you happen to read this, I think resolving this SSL thing is important. Without proper SSL support, you will hardly be able to use this chip to build serious Things of the Internet, instead they would be limited to Things of your Home-network. For example, in forums such as this: http://scn.sap.com/community/developer- ... ta--part-2 (Overcoming Limitations of ESP8266), the ESP8266 is already written off as a chip for an autonomous IoT things and is mentioned that you would need to use to bridge if you dive into more serious scenarios. So, please do take this seriously.
Re: SSL wih signed certificates
Postby ESP_Faye » Thu Jun 04, 2015 6:31 pm
Here is a demo of SSL http://bbs.espressif.com/viewtopic.php?f=21&t=389
Please try to enlarge SSL buffer by espconn_secure_set_size
Code: Select all
espconn_secure_set_size(ESPCONN_CLIENT,5120); // set SSL buffer size, if your SSL packet larger than 2048 bytes
Thanks for your interest in ESP8266 !
-
- Posts: 7
- Joined: Thu Jun 04, 2015 2:59 pm
Re: SSL wih signed certificates
Postby jpenninkhof » Fri Jun 05, 2015 5:57 pm
After using espconn_secure_set_size(ESPCONN_CLIENT,5120), the client does seem to make a proper handscake. Thanks for that!

However, it seems that it crashes somewhere else now...
It seems that the callback set with espconn_regist_sentcb isn't executed anymore. Would you know what that could be caused by?
When I use an unsecure (non-SSL) call, this callback is triggered properly...
Best regards,
Jan Penninkhof
-
- Posts: 7
- Joined: Thu Jun 04, 2015 2:59 pm
Re: SSL wih signed certificates
Postby jpenninkhof » Sun Jun 07, 2015 3:43 pm

The bad news however, is it appears that the ssl connection seems to fail somewhere else. It seems that the espconn_sent now crashes somewhere, and I'm also not receiving a callback to the function I registered with espconn_regist_sentcb anymore.
Any other suggestions leading in the right direction would be greatly appreciated.
-
- Posts: 7
- Joined: Thu Jun 04, 2015 2:59 pm
Re: SSL wih signed certificates
Postby jpenninkhof » Sun Jun 07, 2015 4:30 pm
Awesomeness! Thanks for your help!

Re: SSL wih signed certificates
Postby orcema » Tue Jul 21, 2015 7:45 pm
hcp.sap.com
i get an error
..reconnect callback, error code -11 !!!
while using the script available at
http://bbs.espressif.com/viewtopic.php?f=21&t=389
What am i doing wrong ?
I am using the latest sdk 1.20 with updated ssl library
Who is online
Users browsing this forum: No registered users and 81 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.