Search found 16 matches

by Npt
Sun Oct 18, 2015 2:03 pm
Forum: ESP8266 SDK
Topic: SSL server crashes on client disconnection.
Replies: 4
Views: 4865

Re: SSL server crashes on client disconnection.

It mostly helps, thanks! I still get the error message "server's data invalid protocol", but the ESP doesn't crash anymore and disconn_cb is called now.
by Npt
Fri Sep 25, 2015 11:32 pm
Forum: ESP8266 SDK
Topic: SSL/TLS server on ESP crashes when client disconnects
Replies: 11
Views: 18487

Re: SSL/TLS server: ESP crashes when client disconnects

I see. I guess if you're authenticating the client you have some control over its behaviour. (I still wouldn't feel comfortable knowing that any sudden loss of the client, even an involuntary one, would crash the server. But then again, I don't know your scenario.) Anyway, I think we've accumulated ...
by Npt
Fri Sep 25, 2015 2:03 pm
Forum: ESP8266 SDK
Topic: SSL/TLS server on ESP crashes when client disconnects
Replies: 11
Views: 18487

Re: SSL/TLS server: what does "invalid protocol" mean?

Hi Horacio, I haven't even tried client authentication yet since I'm going for HTTPS where this is hardly ever done. Also, I think we should first get server authentication working before adding another layer of complexity. Right now, we can't even be 100% sure if we're calling the right functions a...
by Npt
Fri Sep 25, 2015 2:00 pm
Forum: ESP8266 SDK
Topic: New CA verification functions
Replies: 3
Views: 3720

Re: New CA verification functions

I changed number 2 in my list because I think I made a mistake there. According to this http://bbs.espressif.com/viewtopic.php?f=51&t=1025 the second parameter of espconn_secure_cert_req_enable is esp_cert_private_key.bin which is created by concatenating a certificate and a private key. So it s...
by Npt
Fri Sep 25, 2015 12:58 am
Forum: ESP8266 SDK
Topic: SSL/TLS server on ESP crashes when client disconnects
Replies: 11
Views: 18487

Re: SSL/TLS server: what does "invalid protocol" mean?

Any chance that someone at Espressif could have a look at this? By now I'm pretty sure this is a bug in the SDK, and quite a big one as well. Please look at the code I attached to my last post. If there's anything else I can do to help you reproduce this error, let me know. There are practically no ...
by Npt
Tue Sep 22, 2015 4:17 pm
Forum: ESP8266 SDK
Topic: SSL/TLS server on ESP crashes when client disconnects
Replies: 11
Views: 18487

Re: SSL/TLS server: what does "invalid protocol" mean?

Today I had some time to take another look at the ESP and this problem in particular. It seems that moving to 1.4.0 has not fixed things. I wrote a (somewhat) minimal example, in case anyone wants to replicate the problem. ⋅ Run makecert.sh to create a CA and a certificate for the server (...
by Npt
Sun Sep 20, 2015 4:15 am
Forum: ESP8266 SDK
Topic: New CA verification functions
Replies: 3
Views: 3720

Re: New CA verification functions

I haven't had the time to test the new functions yet, so I'm speculating here. I don't think that the private key in the API has anything to do with signing certificates. I mean why would the ESP want to sign anything? It does verify signatures (when someone produces a certificate that the ESP doesn...
by Npt
Thu Sep 17, 2015 5:21 pm
Forum: ESP8266 SDK
Topic: SSL/TLS server on ESP crashes when client disconnects
Replies: 11
Views: 18487

Re: SSL/TLS server: what does "invalid protocol" mean?

I think we might have a misunderstanding here. In my case the ESP is the server, whereas some other computer (with Firefox or some other software) acts as the client. I have set the SSL buffer to 8k and that seems to be enough since I can exchange data in both directions without any problem. The pro...
by Npt
Wed Sep 16, 2015 11:52 pm
Forum: ESP8266 SDK
Topic: Power consumption problem when the AP is not avaliable
Replies: 33
Views: 24057

Re: Power consumption problem when the AP is not avaliable

@blubb: Probably yes, but to be honest I don't mind calling another function as long as I get the desired result.
by Npt
Wed Sep 16, 2015 11:51 pm
Forum: ESP8266 SDK
Topic: SSL/TLS server on ESP crashes when client disconnects
Replies: 11
Views: 18487

Re: SSL/TLS server: what does "invalid protocol" mean?

@hdrut: That's interesting to hear. I send the HTTP header "Connection: close" to make the client close the connection. That's mostly because you're not allowed to call espconn_secure_disconnect from within a callback and I wanted to avoid using a task just for this. Anyway, the stability ...

Go to advanced search