c++: Authentication documentation

37 views
Skip to first unread message

maxwel...@gmail.com

unread,
Feb 25, 2019, 6:16:40 AM2/25/19
to grpc.io
Hi,

I want to setup TLS encryption and token authentication. Under https://grpc.io/docs/guides/auth.html
I found the following example for using SSL:
auto channel_creds = grpc::SslCredentials(grpc::SslCredentialsOptions());
auto channel = grpc::CreateChannel("myservice.example.com", channel_creds);
std::unique_ptr<Greeter::Stub> stub(Greeter::NewStub(channel));

The above example does not use a certificate. Is the above code working or is the certificate part missing?

yas...@google.com

unread,
Feb 27, 2019, 1:54:32 PM2/27/19
to grpc.io
There are ways to provide certificates in the guide that you mentioned. Are you facing specific problems? https://grpc.io/docs/guides/auth.html
Reply all
Reply to author
Forward
0 new messages