can gRPC (Python and C++) disable SSL validation?

1,242 views
Skip to first unread message

hao chen

unread,
Apr 23, 2021, 1:26:37 AM4/23/21
to grpc.io

Hi All,

I am using gRPC (Python) version 1.37.

I faced "E0422 18:00:54.951129442    6086 ssl_transport_security.cc:1824] No match found for server name: NODE1." .
After look at https://groups.google.com/g/grpc-io/c/pJnoc_MHkfc , I fixed the issue by adding gRPC-server-hostname in "Common Name" of SSL cert files.

The checking is a little strict. 
SSL_CTX_set_verify() in OpenSSL can specify callback function which we can bypass all security checking.

https://github.com/grpc/grpc/issues/15461 : it is a Pull Request to disable SSL verication like SSL_CTX_set_verify() in Python. But cannot find corresponding fix in source code. Looks like it is never got merged at all.

In gRPC (Python or C++), is there any way to bypass/disable SSL validation?


Thanks

aaron ai

unread,
Dec 5, 2022, 3:07:57 AM12/5/22
to grpc.io

Any progress about this issue? This is no solution for python seemlingly...
Reply all
Reply to author
Forward
0 new messages