openresty / lua-nginx-module

Embed the Power of Lua into NGINX HTTP servers
https://openresty.org/
11.34k stars 2.03k forks source link

It seems a part of the doc is outdated. ngx.ssl.parse_pem_cert cannot be loaded by requiring resty.core #2230

Open StarlightIbuki opened 1 year ago

StarlightIbuki commented 1 year ago

https://github.com/openresty/lua-nginx-module#tcpsocksetclientcert:~:text=ngx.ssl.parse_pem_cert

This function cannot be loaded by require "resty.core".

For someone who encountered the same issue, you can load "ngx.ssl" to get the module.