-
Notifications
You must be signed in to change notification settings - Fork 807
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
possible to support tls? #1312
Comments
As you know, TLS is not supported in Netpoll. |
i've tried chatgpt for answer but it's useless and not working. can you show an example code for kitex rpc using tls? envoy is too troublesome and needing to route through tcp. would prefer to use tls code within prorgram. |
As replied before, Kitex doesn't support TLS natively with netpoll. You may switch to gonet with f := detection.NewSvrTransHandlerFactory(
gonet.NewSvrTransHandlerFactory(),
nphttp2.NewSvrTransHandlerFactory(), // it's necessary for gRPC support
)
svr := yourservice.NewServer(handler, server.WithTransHandlerFactory(f)) |
what is the current workaround other than putting a tls terminator e.g. nginx in front?
hertz already have tls, just wondering why / how does hertz have it when netpoll and kitex cant have it. not sure how the tls layer is done.
also, how much work is it to port hertz's tls to netpoll / kitex etc?
sry for my newbie question.
The text was updated successfully, but these errors were encountered: