Thanks for the solution. Thats what was the problem eventually. The 
endpoint now has ALPN TLS extension and I am not facing that issue anymore. 
Also, I wonder why Android still might need Dynamic Security Provider.

On Thursday, September 6, 2018 at 12:57:13 PM UTC-7, Carl Mastrangelo wrote:
>
> This error comes from the ALPN TLS extension, which you need your SSL 
> endpoint to support.  If you are using NPN, it is unlikely you will be able 
> to connect.
>
> On Thursday, September 6, 2018 at 11:06:02 AM UTC-7, [email protected] 
> wrote:
>>
>> Hello, I am connecting to a server which has TLS support with SSL certs. 
>> I am getting a SSL Handshake error on *Android* app client. I also use 
>> *useTransportSecurity()* to deal with TLS negotiation type. Is there any 
>> workaround to get away with this error without certificate pinning?
>>
>>  
>>
>> ----
>>     Caused by: java.lang.RuntimeException: protocol negotiation failed
>>
>>         at 
>> io.grpc.okhttp.OkHttpProtocolNegotiator.negotiate(OkHttpProtocolNegotiator.java:96)
>>
>>         at 
>> io.grpc.okhttp.OkHttpProtocolNegotiator$AndroidNegotiator.negotiate(OkHttpProtocolNegotiator.java:147)
>>
>>         at 
>> io.grpc.okhttp.OkHttpTlsUpgrader.upgrade(OkHttpTlsUpgrader.java:63)
>>
>>         at 
>> io.grpc.okhttp.OkHttpClientTransport$2.run(OkHttpClientTransport.java:474)
>>
>>         at 
>> io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
>>
>>         at 
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
>>  
>>
>>         at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
>>  
>>
>>         at java.lang.Thread.run(Thread.java:764) 
>> ----
>>
>>  
>>
>> And this is how I generate my channel :
>>
>> ManagedChannel mChannel = OkHttpChannelBuilder.*forAddress*(host, port)
>>         .useTransportSecurity()
>>         .build();
>>
>>  
>>
>>  
>>
>> Appreciate your time and help.
>>
>

-- 
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 post to this group, send email to [email protected].
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/c7e32dc0-f99d-4f23-84c7-96e903aa8a66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to