Does OkHttpChannelBuilder work with TLS/NPN protocol for android 4.1.2

332 views
Skip to first unread message

王 梓佳

unread,
Sep 2, 2016, 2:01:06 PM9/2/16
to grp...@googlegroups.com
Hi team,

I tested the example TesterOkHttpChannelBuilder.java, it worked for android 4.4+ with TLS/ALPN, but I encountered following exception when i test it on 4.1.2 TLS/ALPN or NPN. Could you pls give me a clue to resolve this issue?

public static ManagedChannel build(String host, int port,
                                   @Nullable String serverHostOverride, boolean useTls,
                                   @Nullable InputStream testCa,
                                   @Nullable String androidSocketFactoryTls)



javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x5f338c30: Failure in SSL library, usually a protocol error
error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure (external/openssl/ssl/s23_clnt.c:741 0x5805d76a:0x00000000)


Thanks,
Benson

Carl Mastrangelo

unread,
Sep 13, 2016, 7:12:15 PM9/13/16
to grpc.io, chika...@hotmail.com
I believe we get our TLS implementation from Google Play Services (as it is usually the most up to date).  Is your version up to date?

Eric Anderson

unread,
Sep 16, 2016, 11:20:39 PM9/16/16
to Carl Mastrangelo, grpc.io, Benson Wang
Please enable the Google Play Services Dynamic Security Provider. There are a few links to how to do that in our public SECURITY.md. It's my understanding that every Google property should be using the provider for security reasons, independent of gRPC.

--
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 grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/a957b824-5d9f-4bf0-9059-846cab32c153%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

王 梓佳

unread,
Sep 17, 2016, 1:17:29 PM9/17/16
to Eric Anderson, Carl Mastrangelo, grpc.io

Thanks Eric and Carl for your suggestion!



Best Regards,

Benson

Reply all
Reply to author
Forward
0 new messages