Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gRPC使用TLS验证,TLS认证失败。 #16

Open
VayneYan opened this issue Sep 15, 2020 · 0 comments
Open

gRPC使用TLS验证,TLS认证失败。 #16

VayneYan opened this issue Sep 15, 2020 · 0 comments

Comments

@VayneYan
Copy link

VayneYan commented Sep 15, 2020

我按照 tutorial 给出的,使用 openssl 在本地生成了私钥和证书文件,服务端、客户端都添加上 TLS 认证。
但是当客户端调用远程过程时报错了:
rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate relies on legacy Common Name field, use SANs or temporarily enable Common Name matching with GODEBUG=x509ignoreCN=0"
我尝试了更换服务端、客户端的端口,但结果还是一样。
烦请知道的前辈指点一二。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant