-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
During the websocket client TLS handshake, the server_name field is missing from the Client Hello message sent to the server. #3331
Comments
What's the lws version, mbedtls version? What does the user code setting up the client connection look like? Is there any possibility that the lws headers you are using do not actually match the version of lws you're using? |
LWS: 4.3.3-WM, MbedTLS-3.4.0 |
static struct lws_protocols g_protocols[] = { static int websocke_client(void)
|
The temporary solution I use is as follows: add the following calling after "lws_ssl_client_bio_create" in the function "lws_client_create_tls" in the file "tls-client.c", then it's work OK. mbedtls_ssl_set_hostname(SSL_mbedtls_ssl_context_from_SSL(wsi->tls.ssl), wsi->stash->cis[CIS_HOST]); There may be other regular solutions. |
The address member takes an IP, or DNS address, like warmcat.com. It doesnt take a url. |
Use websocket client to connect to wss://echo.websocket.org, During TLS handshake, the server_name field is missing from the Client Hello message sent to the server, The server will close the connection, and the handshake cannot be completed.
With FreeRTOS, Mbedtls.
The text was updated successfully, but these errors were encountered: