I am testing a gRPC API, written in the GO language. My tests are written in Python (using grpcio lib).
I need to send gRPC requests over HTTPS (using secure_channel(), as far as I understand), but our server doesn't have any certificates. All tests are runned in LAN. And I need to find a way to send a secure_channel() requests without SSL verification.
Is there any way to disable SSL verification from in Python gRPC? All the solutions, I've found in internet don't work.
I'd really appreciate your help. Thanks a lot!
For example, I tried next code:
channel_credentials = grpc.ssl_channel_credentials()channel_credentials.ssl_target_name_override = ''channel = grpc.secure_channel('server_address', channel_credentials)
And I tried this one:
channel_credentials = grpc.ssl_channel_credentials(root_certificates=b'')channel = grpc.secure_channel('server_address', channel_credentials)
But none of them worked :(