-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
TLS 1.3 SSL_ERROR_RX_RECORD_TOO_LONG error #8325
Comments
Please note that multithreading and TLS 1.3 are not compatible unless you only use the TLS 1.3 stack from a single thread, because the PSA API implementation is not thread-safe. We plan to fix this in Mbed TLS 3.6.0. |
Not completely sure but at first sight it may be related to #7918. |
It might be relative record size limit extension |
I could not reproduce this issue in my local. FireFox send |
A minimal html page with a picture should reproduce the issue, provided that image file is bigger than the limit - as could be seen with the |
Hi @Aethedor , There was a problem with record size that has been fixed in the latest development, I can test with MbedTLS server with the maximum response size (by default 16384) and it's working now (before it wasn't) but I can't really know for sure if this solves your problem as well, can you try with the latest development branch and redeploy so I can check? Thanks. |
In my case the current development branch resolved the error with 25 KB image. |
@irwir Thanks for confirming it's fixed. @klook and @waleed-elmelegy-arm thanks for your work on Record Size Limit that fixed this. Closing this issue as fixed. |
With the current development release, the issue is no longer there. |
Summary
I'm using mbed TLS in the Hiawatha webserver. I got TLSv1.3 almost working, but I needed to make in change in mbed TLS to make it actually work.
System information
Mbed TLS version (number or commit id): 3.5.0
Operating system and version: Ubuntu 22.04.3 LTS
Configuration (if not default, please attach
mbedtls_config.h
): in the default config, I enabled the following:MBEDTLS_THREADING_PTHREAD
MBEDTLS_THREADING_C
MBEDTLS_SSL_PROTO_TLS1_3
MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE
I disabled the following:
MBEDTLS_ECP_DP_SECP192R1_ENABLED
MBEDTLS_ECP_DP_SECP192K1_ENABLED
Compiler and options (if you used a pre-built binary, please indicate how you obtained it):
Additional environment information:
Expected behavior
That it works...
Actual behavior
Firefox reports a SSL_ERROR_RX_RECORD_TOO_LONG error for certain files.
Steps to reproduce
Request https://www.cauldron-vtt.net:4443/images/cauldron.png
Without the port 4443 it works fine. That's via mbed TLS 3.4.0, without TLSv1.3 support.
Additional information
The patch to make it work. With this patch, I can browse my websites normally via TLSv1.3. However, SSLLabs.com reports an `unexpected error' for my server.
I know this patch is probably not the right way to fix it, but I hope it gives you a pointer to the real fix. The credits for this all goes to Kun-Chi Lu [email protected], who reported it to me.
The text was updated successfully, but these errors were encountered: