Nodejs secure client

18 views
Skip to first unread message

nevil...@gmail.com

unread,
Aug 28, 2017, 4:33:26 PM8/28/17
to grpc.io
Good day,

I've always seen examples where a Nodejs client is either created as unsecured, or a TLS client certificate is provided. How does one create a secure JS client without any certificates?

For example, the *.googleapis.com grpc endpoint documentation doesn't mention anything about needing certificates. I'm struggling to understand how I can connect to a grpc service from Nodejs with TLS while not providing certificates.

With the Java client, I don't specify withPlainText, and it defaults to TLS. Is there a Nodejs alternative?

Regards
Neville

Michael Lumish

unread,
Aug 28, 2017, 4:42:21 PM8/28/17
to nevil...@gmail.com, grpc.io
If you just don't pass any arguments to the grpc.credentials.createSsl() call, it will use the default certificate authority list, which should work with most public servers.

--
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 grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/7f1a57cb-7800-4403-aebd-212c56e46a49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nevil...@gmail.com

unread,
Aug 28, 2017, 4:51:29 PM8/28/17
to grpc.io, nevil...@gmail.com
Thanks Michael,

I've just tried that, and it worked.
Reply all
Reply to author
Forward
0 new messages