ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-21T19:45:18+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=548 2015-07-21T19:45:18+08:00 2015-07-21T19:45:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=548&p=2774#p2774 <![CDATA[Re: SSL wih signed certificates]]>
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

Statistics: Posted by orcema — Tue Jul 21, 2015 7:45 pm


]]>
2015-06-07T16:30:04+08:00 2015-06-07T16:30:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=548&p=2077#p2077 <![CDATA[Re: SSL wih signed certificates]]> Awesomeness! Thanks for your help! :)

Statistics: Posted by jpenninkhof — Sun Jun 07, 2015 4:30 pm


]]>
2015-06-07T15:43:06+08:00 2015-06-07T15:43:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=548&p=2076#p2076 <![CDATA[Re: SSL wih signed certificates]]>

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.

Statistics: Posted by jpenninkhof — Sun Jun 07, 2015 3:43 pm


]]>
2015-06-05T17:57:46+08:00 2015-06-05T17:57:46+08:00 https://bbs.espressif.com:443/viewtopic.php?t=548&p=2068#p2068 <![CDATA[Re: SSL wih signed certificates]]>
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

Statistics: Posted by jpenninkhof — Fri Jun 05, 2015 5:57 pm


]]>
2015-06-04T18:31:33+08:00 2015-06-04T18:31:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=548&p=2056#p2056 <![CDATA[Re: SSL wih signed certificates]]>
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:

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 !

Statistics: Posted by ESP_Faye — Thu Jun 04, 2015 6:31 pm


]]>
2015-06-04T15:25:34+08:00 2015-06-04T15:25:34+08:00 https://bbs.espressif.com:443/viewtopic.php?t=548&p=2052#p2052 <![CDATA[SSL wih signed certificates]]> viewtopic.php?f=5&t=508.

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.

Statistics: Posted by jpenninkhof — Thu Jun 04, 2015 3:25 pm


]]>