Git Product home page Git Product logo

Comments (2)

vaishali-ntnx avatar vaishali-ntnx commented on August 29, 2024

I was trying to run this example without changing anything but I am getting this error -
http: TLS handshake error from [::1]:53217: remote error: tls: bad certificate INFO: 2018/10/15 13:16:40 pickfirstBalancer: HandleSubConnStateChange: 0xc000158060, TRANSIENT_FAILURE WARNING: 2018/10/15 13:16:40 grpc: addrConn.createTransport failed to connect to {localhost:10000 0 <nil>}. Err :connection error: desc = "transport: authentication handshake failed: x509: Common Name is not a valid hostname: localhost:10000". Reconnecting...

Can anyone help me understanding the problem here?

from grpc-gateway-example.

adamcohen avatar adamcohen commented on August 29, 2024

I had to use the following commands from the certs/Makefile to generate my own Key and Cert values:

openssl genrsa -out server.key 2048
openssl req -new -x509 -key server.key -out server.pem -days 3650

I also used a different port than 10000, so when generating the above certificate, I had to use localhost:8020 as the Common Name:

Common Name (eg, fully qualified host name) []:localhost:8020

When using curl to hit the http endpoint, I had to pass -k and when using grpcurl I had to pass -insecure

from grpc-gateway-example.

Related Issues (18)

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.