Hi Chengyuan and thanks for your reply! Indeed, I'm talking about the server side. I understand the gRPC team doesn't support it on Android but the Netty team does officially support Android, which is why I'm looking into it.
Everything seems to work as far as we can tell, at least the hello-world example. But TLS doesn't work because of the issue I mentioned, so I was wondering if anyone here had any luck. Cheers, Gus. On Thu, 9 Apr 2020 at 22:38, 'Chengyuan Zhang' via grpc.io < [email protected]> wrote: > Running a gRPC server on Android? That doesn't sound what we support. gRPC > client on Android uses Okhttp (netty has problems on Android). > > There were a lot of Github discussions regarding TLS on Android/Okhttp. > > This document <https://github.com/grpc/grpc-java/blob/master/SECURITY.md> has > some high-level discussion about gRPC with TLS in general. > > This Github issue <https://github.com/grpc/grpc-java/issues/6374> contains > fair amount of useful information for using TLS on Android/Okhttp. There > are solid code snippets for TLS configurations in the comments and that > user eventually got things to work. > > We may add an example for using TLS on Android/Okhttp (existing one uses > netty, which doesn't work for Android) soon. Please stay tuned. > > On Thursday, April 9, 2020 at 2:19:35 PM UTC-7 [email protected] wrote: > >> Hello! >> >> I've got a question for those of you who've got a gRPC server running on >> Android: Did you manage to get TLS to work, and if so, how? >> >> We've got the server to work on Android using Netty but the only thing >> that doesn't work is TLS and we've narrowed it down to Netty requiring >> Java >= 8 when using conscrypt >> <https://github.com/netty/netty/blob/2b14775446f3f3937ddd6eb6bd7b22686810908f/handler/src/main/java/io/netty/handler/ssl/Conscrypt.java#L59>, >> but Android reports Java 6. >> >> Cheers, >> >> Gus. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "grpc.io" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/grpc-io/z3INkyJLuMQ/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/grpc-io/ad810ac8-c042-48fd-9bfe-4849d618fe5f%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/ad810ac8-c042-48fd-9bfe-4849d618fe5f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CA%2BUGgtf7Mh6wkdLW%3DVU20S1%2BfWYgAk2EoW%3DVw5%2BMpsgALceLgg%40mail.gmail.com.
