ktr0731 / evans

Evans: more expressive universal gRPC client
MIT License
4.24k stars 187 forks source link

I can't connect with tls #589

Closed sithu-go closed 1 year ago

sithu-go commented 1 year ago

I can't connect with secure connection

ca.crt works in my client go code. but not in my terminal.

is something wrong with my command?

evans -p 50051 -r --tls true --cacert ssl/ca.crt

evans: failed to run REPL mode: failed to instantiate a new spec: failed to instantiate the spec: failed to list packages by gRPC reflection: failed to list services from reflection enabled gRPC server: rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs"
sithu-go commented 1 year ago

Sorry I forget to add

--host localhost

evans --host localhost -p 50051 -r --tls true --cacert ssl/ca.crt

ktr0731 commented 1 year ago

Please follow the issue template. Do you try to run with --servername option?

$ evans -r -t --cacert ssl/ca.crt --servername localhost