Skip to content

Nodemcu reset when trying to establish a secured connection with WiFiClientsecure #1894

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HW-Siew opened this issue Apr 11, 2016 · 4 comments

Comments

@HW-Siew
Copy link

HW-Siew commented Apr 11, 2016

Hi, I tried the HTTPSRequest example. It worked fine to verify the domain "api.github.com". However, when i tried to establish a connection with my own server "t2.qrwow.com'. The nodemcu reset, and following are the stack dump. I couldn't understand the messages tho. I confirmed that my server supports tls 1.1. Any advice are very much appreciated. Thank you.

Decoding 13 results
0x40228f32: ssl_read at /Users/igrokhotkov/e/axtls/e1/ssl/tls1.c line 260
0x40229121: do_client_connect at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_clnt.c line 161
0x4021b5d6: tcp_connect at ?? line ?
0x402291ac: ssl_client_new at /Users/igrokhotkov/e/axtls/e1/ssl/tls1_clnt.c line 71
0x4020334e: SSLContext::connect(ClientContext*) at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 428
:  (inlined by) WiFiClientSecure::_connectSSL() at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 249
0x4020403c: esp_yield at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\cores\esp8266/core_esp8266_main.cpp line 43
0x4020361a: WiFiClientSecure::connect(IPAddress, unsigned short) at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 233
0x40202809: WiFiClient::connect(char const*, unsigned short) at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\libraries\ESP8266WiFi\src/WiFiClient.cpp line 362
0x40204880: Print::println() at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\cores\esp8266/Print.cpp line 131
0x40203630: WiFiClientSecure::connect(char const*, unsigned short) at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\libraries\ESP8266WiFi\src/WiFiClientSecure.cpp line 239
0x402021f4: setup at C:\Users\HW\AppData\Local\Temp\arduino_modified_sketch_509988/HTTPSRequest.ino line 52
0x40204080: loop_wrapper at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\cores\esp8266/core_esp8266_main.cpp line 43
0x40100114: cont_norm at C:\Users\HW\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.1.0-rc2\cores\esp8266/cont.S line 109
@igrr
Copy link
Member

igrr commented Apr 18, 2016

Is this the same issue as #1927?

@HW-Siew
Copy link
Author

HW-Siew commented Apr 18, 2016

Not exactly the same. I worked around to the other way to avoid the issue, but i think the latest version library should solve this as well. Haven't tested tho. Close this for now.

Thanks ;)

@HW-Siew HW-Siew closed this as completed Apr 18, 2016
@HW-Siew
Copy link
Author

HW-Siew commented Apr 20, 2016

Hi @igrr, I am referring to #1375. You mentioned that not all cert with 2048 key can work for ssl. Is that still valid after the issue is closed and fixed? For the reason, i am still experiencing WDT reset for some domains i tested which all of them has 2048 key.

Thanks for the advice.

@HW-Siew HW-Siew reopened this Apr 20, 2016
@HW-Siew
Copy link
Author

HW-Siew commented Apr 20, 2016

I think i know why. This is probably current lib doesn't support SNI yet as reported in #1285.

@HW-Siew HW-Siew closed this as completed Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants