FFI-based OpenSSL binding for OpenResty
https://github.com/fffonion/lua-resty-openssl
54 forks.
172 stars.
4 open issues.
Recent commits:
- ci: bump OpenSSL lanes to the latest patch of each minor3.5.6 -> 3.5.9, 3.0.20 -> 3.0.22, 3.6.2 -> 3.6.5, 4.0.0 -> 4.0.3, and theFIPS module sources 3.0.9 -> 3.0.22 and 3.1.2 -> 3.1.8. 1.1.1w is the lastrelease of its series and stays.The luaossl skip that keyed on the literal 4.0.0 now tests the major version,so the next 4.0 patch does not silently start building luaossl again., Wangchong Zhou
- ci: test OpenResty 1.27.1 through 1.31.8Move every matrix lane one OpenResty release forward, dropping 1.25.3 andadding 1.31.8, which is the current release (1.31.8.1, 26 Oct 2026).The per-release lua-nginx-module and lua-resty-core pins follow the versionseach OpenResty release bundles: 1.27.1.2 lua-nginx-module v0.10.28 lua-resty-core v0.1.31 1.29.2.x lua-nginx-module v0.10.31rc2 lua-resty-core v0.1.34rc2 1.31.1.1 lua-nginx-module v0.10.31rc5 lua-resty-core v0.1.34rc3 1.31.8.1 lua-nginx-module v0.10.32rc7 lua-resty-core v0.1.35rc21.31.8 keeps both the OpenSSL 3.5.6 and 4.0.0 lanes, and the OpenSSL 1.1.1wlane moves to 1.31.1 unchanged, including the -std=gnu17 workaround itsheaders need., Wangchong Zhou
- release: 1.10.0, Wangchong Zhou
- feat(pkey): properly support SM2 keys, GitHub
- fix(ssl): prefer the core request SSL_CTX getter.Use ngx.ssl.get_req_ssl_ctx when available, preserving the borrowedSSL_CTX pointer type and propagating native errors without invoking alegacy getter. Keep the existing fallback when the Lua API is absent.Update the API-selection documentation and cover native request contextselection, error propagation, stream use, and absent-API fallback.Validation: all 176 SSL assertions pass with the modified core and Cexports, and with the older Nginx/core installation. Real HTTP and streamTLS probes pass with legacy initialization forbidden. Luacheck andgit diff –check pass., Wangchong Zhou
支持OpenSSL 1.1.x, 1.0.x和1.0.2系列