This 
document: 
https://github.com/grpc/grpc-java/blob/master/SECURITY.md#getting-netty-tcnative-boringssl-static-from-maven

On Monday, October 8, 2018 at 3:47:00 PM UTC+2, [email protected] 
wrote:
>
> I originally followed the instructions on this document to set up my 
> project and used netty-tcnative-boringssl-static version 2.0.7.Final.
>
> Using version 2.0.17.Final made the problem go away.
>
> Any idea of why that may be the case?
>
> On Monday, October 8, 2018 at 10:29:36 AM UTC+2, 
> [email protected] wrote:
>>
>> (question originally posted on StackOverflow 
>> <https://stackoverflow.com/questions/52697530/channel-closed-when-running-simple-example-with-tls>
>> )
>>
>>
>> I'm trying to run the official "Hello, World" example with TLS, provided 
>> by the gRPC team (code on GitHub 
>> <https://github.com/grpc/grpc-java/tree/v1.15.0/examples/src/main/java/io/grpc/examples/helloworldtls>
>> ).
>>
>> I've cloned the official repo and checked out tag v1.15.0.
>>
>> I've run the installation script as follows (as shown in the 
>> documentation):
>>
>> ./gradlew installDist
>>
>> I've edited the launch scripts for hello-world-server and 
>> hello-world-client to run the classes 
>> io.grpc.examples.helloworldtls.HelloWorldServerTls and 
>> io.grpc.examples.helloworldtls.HelloWorldClientTls respectively.
>>
>> I've created the certificates needed for the TLS authentication to happen 
>> using the script provided as part of the documentation 
>> <https://github.com/grpc/grpc-java/tree/v1.15.0/examples#generating-self-signed-certificates-for-use-with-grpc>
>>  and 
>> stored them in a directory I named cert.
>>
>> Finally, I've run the server as follows:
>>
>> ./build/install/examples/bin/hello-world-server localhost 50440 
>> cert/server.crt cert/server.pem
>>
>> The server starts correctly and outputs the following:
>>
>> Oct 08, 2018 9:15:10 AM io.grpc.examples.helloworldtls.HelloWorldServerTls 
>> start
>> INFO: Server started, listening on 50440
>>
>> Finally, I try to start the client on another shell with the following 
>> command:
>>
>> ./build/install/examples/bin/hello-world-client localhost 50440 cert/ca.crt
>>
>> Unfortunately, the client fails with the following output:
>>
>> Oct 08, 2018 9:25:22 AM io.grpc.examples.helloworldtls.HelloWorldClientTls 
>> greet
>> INFO: Will try to greet localhost ...Oct 08, 2018 9:25:22 AM 
>> io.grpc.examples.helloworldtls.HelloWorldClientTls greet
>> WARNING: RPC failed: Status{code=UNKNOWN, description=channel closed, 
>> cause=java.
>>
>>
-- 
This message, and any attachments, is for the intended recipient(s) only, 
may contain information that is privileged, confidential and/or proprietary 
and subject to important terms and conditions available at 
http://www.digitalasset.com/emaildisclaimer.html 
<http://www.digitalasset.com/emaildisclaimer.html>. If you are not the 
intended recipient, please delete this message.

-- 
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/ae902407-8d3b-4f71-b4b8-7d31336a1cdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to