What would be the steps to add Mutual TLS to this HelloWorldTLS example?

30 views
Skip to first unread message

nicholas...@lucidworks.com

unread,
Jan 25, 2018, 10:46:52 AM1/25/18
to grpc.io
I created a new HelloWorld with TLS enabled example here: https://github.com/grpc/grpc-java/pull/3992

So far I have only configured TLS. Not mutual TLS.

What would be the steps to enable Mutual Auth in this example?


But i'm confused where to add those changes to the java code?


Spencer Fang

unread,
Jan 25, 2018, 12:42:46 PM1/25/18
to nicholas...@lucidworks.com, grpc.io
This should work in theory but I have not tried it myself:

The post discusses the okhttp channel builder targetting android, but the netty channel builder has a similar setter for the SslContext.

--
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+unsubscribe@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/65f663c9-9fa4-4fbf-afb4-b771b7aa7d20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Spencer Fang

Eric Anderson

unread,
Jan 25, 2018, 5:12:30 PM1/25/18
to Spencer Fang, nicholas...@lucidworks.com, grpc.io
This discussion was completed in https://github.com/grpc/grpc-java/issues/4004
Reply all
Reply to author
Forward
0 new messages