go-grpc-example icon indicating copy to clipboard operation
go-grpc-example copied to clipboard

An example of gRPC

Results 4 go-grpc-example issues
Sort by recently updated
recently updated
newest added

client.Search err : rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate relies on legacy Common Name field, use SANs or temporarily...

I tried to run "go get -u github.com/openzipkin/zipkin-go-opentracing",it occurs errors——go: github.com/openzipkin/[email protected]: parsing go.mod: unexpected module path "github.com/openzipkin-contrib/zipkin-go-opentracing".

你好,我是从你的[技术博客](https://studygolang.com/articles/15331)转过来的,这些示例非常有用。 我是grpc的初学者,使用过基本的grpc的java,python,go客户端编程,服务端代码不熟悉。之前一直用的是plaintext传输,现在想学习tls。但网上没多少有用资料,你的这个算是又精简又可以直接下载运行的,所以非常好。 能不能再帮忙解答以下疑惑(也许你可以加到readme里面): 1. 我们都知道grpc是基于httpv2的,那么使用Plaintext(比如java建联的时候用usePlaintext)可以与https共用吗?如果可以,https不就已经实现了安全性了吗(grpc不用再写相关代码了)?如果不能共用,那为什么? 2. 你的代码的simple_server和simple_client我下载运行是成功的,但和网上很多教程一样,你都用了自己签发的证书,所以客户端需要加载相应的证书。那么grpc的tls有可能像我们平时访问https网站的时候,客户端不需要增加额外代码吗(拿python的requests来说,就没任何额外代码,也没要求输入本地证书路径)?如果服务端用的不是自签名证书,而用的权威证书颁发机构的证书,那么客户端的代码应该怎么写?类似的问题我在StackOverflow也看到[一个](https://stackoverflow.com/questions/52500939/how-to-configure-grpc-client-communicating-over-tls-transport-layer-without-serv)。

https://github.com/EDDYCJY/go-grpc-example/blob/0f68708edbcbb3c21715c190642c50c71241963c/server/stream_server/server.go#L60 https://github.com/EDDYCJY/go-grpc-example/blob/0f68708edbcbb3c21715c190642c50c71241963c/server/stream_server/server.go#L89 These two pieces of code cannot be executed and should be deleted.