{
  "id": "go/grpc-tls-certificate-expired",
  "signature": "rpc error: code = Unavailable desc = connection closed: tls: failed to verify certificate: x509: certificate has expired or is not yet valid",
  "signature_zh": "rpc错误：代码=不可用 描述=连接关闭：tls：验证证书失败：x509：证书已过期或尚未生效",
  "regex": "rpc\\ error:\\ code\\ =\\ Unavailable\\ desc\\ =\\ connection\\ closed:\\ tls:\\ failed\\ to\\ verify\\ certificate:\\ x509:\\ certificate\\ has\\ expired\\ or\\ is\\ not\\ yet\\ valid",
  "domain": "go",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "The TLS certificate used by the gRPC server has expired or is not yet valid.",
  "root_cause_type": "generic",
  "root_cause_zh": "gRPC服务器使用的TLS证书已过期或尚未生效。",
  "versions": [
    {
      "version": "1.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Restart the gRPC server without changing certificates.",
      "why_fails": "Expired certificate remains invalid after restart.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    },
    {
      "action": "Set system time back to make certificate valid.",
      "why_fails": "Breaks other services and is a security risk.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Renew the TLS certificate and reload the server.",
      "success_rate": 0.95,
      "how": "openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 365",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use insecure connection temporarily for debugging.",
      "success_rate": 0.9,
      "how": "conn, err := grpc.Dial(address, grpc.WithInsecure())",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}