Ok, as reported in the document I linked in this same thread, I was using
incompatible versions.

On Mon, Oct 8, 2018 at 4:05 PM stefano.baghino via grpc.io <
[email protected]> wrote:

> I looked on the project page and the code repo but it looks like there are
> no available changelogs. Is there any way to understand what caused the
> problem and why it went away?
>
> https://opensource.google.com/projects/boringssl
>
> On Monday, October 8, 2018 at 3:50:27 PM UTC+2,
> [email protected] wrote:
>>
>> After checking multiple versions, it seems that 2.0.11.Final is the one
>> that fixes the problem. Will have a look at the change logs.
>>
>> 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.<span 
>>> style="font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;v
>>>
>>>
> 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. If you are not the
> intended recipient, please delete this message.
>
> --
> 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/zg9tBeRpg88/unsubscribe.
> To unsubscribe from this group and all its topics, 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/d0c5ffdc-7e40-4eb3-b4d3-7bd58acbd407%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/d0c5ffdc-7e40-4eb3-b4d3-7bd58acbd407%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Stefano Baghino
Software Engineer
e: [email protected]
Digital Asset (Switzerland) GmbH
Luggwegstrasse 9
8048 Zurich, Switzerland
digitalasset.com <http://www.digitalasset.com/>

-- 
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/CADSq2u69vUS62dekX1tJ6VS90nhTOsp%3DJseVkZnXDC9sqMM_CQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to