question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Looking for Hello world example that uses SSL/TLS

See original GitHub issue

Looking for usage example(s) demonstrating the 2nd and 3rd parameters for the ctor of the generated client:

let apiClient = new APIServicePromiseClient(hostAndPort, null, null);

defined as:

constructor (hostname: string,
               credentials?: null | { [index: string]: string; },
               options?: null | { [index: string]: string; });

I’m looking for a way to establish an ssl Credential object, but not sure if is the same API as in the gRPC docs for Nodejs.

The followup on

https://github.com/grpc/grpc-web/issues/40 https://github.com/grpc/grpc-web/pull/125

has not progressed.

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

8reactions
GeorgeTsagkcommented, Jun 12, 2020

Any progress on this? Looking for a simple example that makes grpc-web calls over TLS (browser-to-envoy TLS)

4reactions
iasnivcommented, Mar 26, 2020

I use envoy to take care of the https issues. hope this helpful

How can there be a trust established between my application in the browser and envoy in this case? In case of client certificate, shouldn’t my application be adding the certificate and envoy passing it on upstream? Much like using the CURLOPT_SSLCERT option to add a client certificate.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What happens in a TLS handshake? | SSL ... - Cloudflare
A TLS handshake enables clients and servers to establish a secure connection and create session keys. Learn more about how a TLS vs...
Read more >
How to Use SSL/TLS with Node.js - SitePoint
In this tutorial, I'll walk you through a practical example of how to add a Let's Encrypt–generated certificate to your Express.js server.
Read more >
Simple TLS Server - OpenSSLWiki
The first thing we do is create an SSL_CTX or SSL context. This is created using the TLS_server_method which creates a server that...
Read more >
Sample Code Illustrating a Secure Socket Connection ...
The example SSLSocketClient.java demonstrates how to create a client that uses an SSLSocket to send an HTTP request and to get a response...
Read more >
How to run the Hello World API with Mutual SSL on Postman
In this "How-to" guide we will show you how to run the Visa Hello World API with Two-Way SSL (Mutual Authentication) on Postman....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found