go
auth_error
ai_generated
true
rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: x509: certificate signed by unknown authority"
ID: go/grpc-tls-certificate-error
80%Fix Rate
87%Confidence
0Evidence
2024-02-15First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 1.60.0 | active | — | — | — |
Root Cause
The client cannot verify the server's TLS certificate because the CA is not trusted.
generic中文
客户端无法验证服务器的 TLS 证书,因为 CA 不受信任。
Workarounds
-
95% success
Add the server's CA certificate to the client's trust pool using credentials.NewClientTLSFromFile.
-
90% success
Use the system root CA pool by ensuring the server uses a publicly trusted certificate.
Dead Ends
Common approaches that don't work:
- 90% fail
- 80% fail