I wrote a simple client to work with some server. Everything works fine
with direct access.
But, if I declare the variable, I get the error "Handshake failed with
fatal error SSL_ERROR_SSL: error:1000007d:SSL
routines:OPENSSL_internal:CERTIFICATE_VERIFY_FAILED."
This is my code for making connection
string root = read_keycert("../roots.crt");
grpc::SslCredentialsOptions ssl_opts;
ssl_opts.pem_root_certs = root;
ssl_opts.pem_private_key = "";
ssl_opts.pem_cert_chain = "";
channel_creds = grpc::SslCredentials(ssl_opts);
channel = grpc::CreateChannel(URL, channel_creds);
stub = vox::tts::TTS::NewStub(channel);
I guess i need to make a connection with a parameter
GRPC_TLS_SKIP_ALL_SERVER_VERIFICATION. But I don't understand how.
I need a small example. Thanks.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/grpc-io/85f4aee1-c21f-4b53-a6d9-d052323804d8n%40googlegroups.com.