Skip to content
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

HTTPS mTLS achieve #298

Open
zhao173205 opened this issue May 24, 2023 · 1 comment
Open

HTTPS mTLS achieve #298

zhao173205 opened this issue May 24, 2023 · 1 comment

Comments

@zhao173205
Copy link

I am using OpenResty version 1.19.9 ngx_ Lua to 0.10.20. I am currently using resty.http to configure bidirectional authentication for HTTPS TLS. What configuration do I need to do or can I provide relevant sample code

@pintsized
Copy link
Member

Unfortunately this feature is still not available in an OpenResty release. You will need to use OpenResty 1.21.4.2 RC1 to try it out.

lua-resty-http simply provides an option to supply a client certificate, but under the hood the work is done by the lua-nginx-module API. Therefore, the documentation that you need can be found here: https://github.com/openresty/lua-nginx-module#tcpsocksetclientcert

Once you have understood how to configure things on the OpenResty side, you can simply supply that configuration to lua-resty-http during connect, and it will handle it for you: https://github.com/ledgetech/lua-resty-http#connect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants