Giter VIP home page Giter VIP logo

Comments (3)

sulliwane avatar sulliwane commented on September 4, 2024

I added the option --backend_tls=true, and now my grpc server is throwing:

ssl_transport_security.c:947] Handshake failed with fatal error SSL_ERROR_SSL: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number.
chttp2_server.c:123]        Handshaking failed: {"created":"@1491644898.916048787","description":"Handshake failed","file":"../src/core/lib/security/transport/security_handshaker.c","file_line":274,"tsi_code":10,"tsi_error":"TSI_PROTOCOL_FAILURE"}

and grpcwebproxy throws:

INFO[0013] transport: http2Client.notifyError got notified that the client transport was broken EOF.  system=system

EDIT: my node grpc server is using [email protected]
EDIT2: using the --backend_tls_noverify=true can be a workaround

from grpc-web.

sulliwane avatar sulliwane commented on September 4, 2024

I think I mixed these two flags:

  1. --server_tls_client_ca_files
  2. --backend_tls_ca_files

What I need for my grpcwebproxy to connect to backend grpc server that is using self-signed cert is the second flag I guess?

Still, starting grpcwebproxy with the "correct" flag still complain with:

Failed to dial localhost:50052: connection error: desc = "transport: x509: certificate signed by unknown authority"; please retry. system=system

and here is my grpc server error:

ssl_transport_security.c:947] Handshake failed with fatal error SSL_ERROR_SSL: error:14094412:SSL routines:ssl3_read_bytes:sslv3 alert bad certificate.
chttp2_server.c:123]        Handshaking failed: {"created":"@1491648095.618424166","description":"Handshake failed","file":"../src/core/lib/security/transport/security_handshaker.c","file_line":274,"tsi_code":10,"tsi_error":"TSI_PROTOCOL_FAILURE"}

I'm using --backend_tls_noverify=true for now.

from grpc-web.

jonnyreeves avatar jonnyreeves commented on September 4, 2024

Closing this issue as it's a question (and it would appear no-one has the answer) - may I suggest you post on stackoverflow using the grpc-web tag?

Thanks :)

from grpc-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.