Hi,
Is there a way to create a grpc client in go so it will do both at the same time:
- ignore TLS cert errors
- allow insecure channel
I am trying to allow grpc prober to do insecure as well as ignoring server certificates errors like http prober does. But I cannot figure out if I can do both at the same time.
- WithInsecure allow non-TLS
- WithTransportCredentials(credentials.NewTLS(&tls.Config{InsecureSkipVerify: true})) ignores errors
Implementing it as two calls with the fallback from one to another will require some advanced timout management. Adding a configuration option for this seems like an overkill.
Any advice is appreciated! And sorry if it is obvious - I didn't spent too much time researching, but enough to get stuck :-).
/Sergey