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

starttls #324

Open
bjne opened this issue Sep 13, 2023 · 1 comment
Open

starttls #324

bjne opened this issue Sep 13, 2023 · 1 comment

Comments

@bjne
Copy link

bjne commented Sep 13, 2023

Does anyone have ideas on how starttls could be possible to accomplish with this module?
Would likely need patches to nginx as well, but would be a nice feature that is currently missing

@bjne
Copy link
Author

bjne commented Sep 14, 2023

I was able to accomplish this now by preread and proxy, but would be extremely nice if one could:

listen 1234; # no ssl here

ssl_certificate_...

preread_by_lua_block {
  local sock = assert(ngx.req.socket(true))

  if sock:receive() == "STARTTLS" then
     sock:sslhandshake(...)
  end
}

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

1 participant