Is it possible in GRPC C++ to separate the endpoint used in the TCP connection from the server name that is verified by SSL?
The simple case for an SSL client connection setup is this:
auto channel = grpc::CreateChannel("myhost.domain:50051", grpc::SslCredentials(grpc::SslCredentialsOptions()));
The host name "myhost.domain" is used to make the TCP connection and is used by SSL to verify the servers certificate.
I would like to connect to a TCP address as endpoint (e.g. "
10.1.2.3:50051") and to let SSL verify that the server name in the certificate is "myhost.domain".
Is this possible and how ?
Thanks