-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
ussl.wrap_socket fails with mbedtls_ssl_handshake errors on ESP32 #5808
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
Comments
I have good news and bad news for you ;-)
The bad news, other than the funny typo, is that the error is due to too small a buffer. MP uses the asymmetric buffer sizes and that puts a limit on the RSA key size, or something like that (someone please correct me). This is a well-known issue with TLS and constrained memory devices. I believe the buffer sizes are fixed at compile time (that's a mbedtls limitation). |
Maybe related to #7038 |
…coded-samples audiomp3: reset decoded_samples when file resets
This issue is now being tracked in #8940. |
In some cases, the
ussl.wrap_socket
function fails with a nondescript error:This doesn't seem to be a network problem as requests to other pages work well in the same session. This is in fact the only page I've run into this issue with, and I can't figure out what's wrong with its TLS setup.
I initially ran into this when using the
urllib.urequest.urlopen
function and I believed this was a micropython-lib bug, so I didn't post the issue here (original issue was micropython/micropython-lib#374), but I found out later that the bug wasn't present in the Micropython version 1.12 and that it was probably introduced by commit 3032ae1, which switches the version of ESP-IDF used to build Micropython for ESP32. Even though I managed to replicate the bug only using the undocumented parameterserver_hostname
ofwrap_socket
function, I really think this is a bug in Micropython (or some underlying library), not in micropython-lib.The text was updated successfully, but these errors were encountered: