Skip to content

[skip ci] ngx_http_lua_ffi_ssl_get_client_hello_ciphers()#2415

Closed
climagabriel wants to merge 2 commits into
openresty:masterfrom
climagabriel:feature_ssl_client_hello_get_ciphers
Closed

[skip ci] ngx_http_lua_ffi_ssl_get_client_hello_ciphers()#2415
climagabriel wants to merge 2 commits into
openresty:masterfrom
climagabriel:feature_ssl_client_hello_get_ciphers

Conversation

@climagabriel

Copy link
Copy Markdown
Contributor

Partially inspired by:
https://github.com/naofumi0628/haproxy/blob/fefb9e37714bd2e3ad2adc3a321e165fc1dafae2/src/ssl_sock.c#L2252

Relevant:
fooinha/nginx-ssl-ja3#64
openssl/openssl#27580

And especially:
https://github.com/openresty/lua-nginx-module#:~:text=after%20SSL%20handshake%2C-,the%20ngx.ctx%20created,-in%20ssl_certificate_by_lua*

It might be pointless for me to pull all this data into Lua-land if I don't find a way to store those values. I need some kind of ngx.ctx but related not a request but to a ngx_ssl_connection_t, instead of a request.

I hereby granted the copyright of the changes in this pull request
to the authors of this lua-nginx-module project.

Partially inspired by:
	https://github.com/naofumi0628/haproxy/blob/fefb9e37714bd2e3ad2adc3a321e165fc1dafae2/src/ssl_sock.c#L2252

Relevant:
	fooinha/nginx-ssl-ja3#64
        openssl/openssl#27580

And especially:
	https://github.com/openresty/lua-nginx-module#:~:text=after%20SSL%20handshake%2C-,the%20ngx.ctx%20created,-in%20ssl_certificate_by_lua*

It might be pointless for me to pull all this data into Lua-land if I don't find a way to store those values.
I need some kind of ngx.ctx but related not a request but to a ngx_ssl_connection_t, instead of a request.
@climagabriel climagabriel force-pushed the feature_ssl_client_hello_get_ciphers branch from fa9d848 to 3043b80 Compare May 7, 2025 18:51
@climagabriel climagabriel changed the title ngx_http_lua_ffi_ssl_get_client_hello_ciphers() [skip ci] ngx_http_lua_ffi_ssl_get_client_hello_ciphers() May 7, 2025
@climagabriel climagabriel deleted the feature_ssl_client_hello_get_ciphers branch May 8, 2025 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant