-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Carry SNI while doing SSL handshaking with upstream #2988
Comments
add welcome anyone to submit PR, fix this issue |
Feel cool to fix this issue since I am not familiar with apisix so I think it will take some time to learn it first. |
@unbeatablekb Assigned to you and feel free to ask any questions here. |
this is very cool ^_^ |
I have open a pr about this issue (as we can see above). Considered this functionality was guaranteed by Nginx and we just need to test the functionality of the generation of template which were already in testcases, I didn't add testcase of it. |
@unbeatablekb No, we should add cases to verify it. |
I agree with it. But I think it is hard to verify the changes because we can't verify things happened in tls. |
@tokers @unbeatablekb |
@spacewander OK, it's required. |
So far we don't enable the SNI extension when communicating with upstream. If upstream server depends on SNI to select proper certificate, then the TLS/SSL handshaking will fail. So we should carry the SNI extension.
Nginx has a directive named
proxy_ssl_server_name
.Enables or disables passing of the server name through TLS Server Name Indication extension (SNI, RFC 6066) when establishing a connection with the proxied HTTPS server.
So we can add this directive into
apisix/cli/ngx_tpl.lua
.The text was updated successfully, but these errors were encountered: