{
  "id": "grpc/grpc-tls-certificate-not-found",
  "signature": "UNAVAILABLE: grpc: TLS certificate not found: /etc/ssl/certs/server.crt",
  "signature_zh": "不可用: grpc: 未找到 TLS 证书: /etc/ssl/certs/server.crt",
  "regex": "UNAVAILABLE: grpc: TLS certificate not found: .*",
  "domain": "grpc",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The specified TLS certificate file path does not exist or is inaccessible due to permissions or incorrect path.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定的 TLS 证书文件路径不存在，或因权限或路径错误而无法访问。",
  "versions": [
    {
      "version": "grpc-go 1.60.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "grpc-java 1.59.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "OpenSSL 3.0.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The error is about the server certificate, not the root CA; changing root path doesn't help if server cert path is wrong.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This bypasses security but does not fix the missing certificate; the server still fails to start with TLS.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify the certificate file exists and has correct permissions. Run:\n  ls -la /etc/ssl/certs/server.crt\n  If missing, generate or copy the certificate. Example using OpenSSL:\n  openssl req -x509 -newkey rsa:4096 -keyout /etc/ssl/certs/server.key -out /etc/ssl/certs/server.crt -days 365 -nodes\n  Then update the gRPC server config to point to the correct paths.",
      "success_rate": 0.95,
      "how": "Verify the certificate file exists and has correct permissions. Run:\n  ls -la /etc/ssl/certs/server.crt\n  If missing, generate or copy the certificate. Example using OpenSSL:\n  openssl req -x509 -newkey rsa:4096 -keyout /etc/ssl/certs/server.key -out /etc/ssl/certs/server.crt -days 365 -nodes\n  Then update the gRPC server config to point to the correct paths.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If using a custom path, set the GRPC_GO_TLS_CERT_FILE and GRPC_GO_TLS_KEY_FILE environment variables before starting the server:\n  export GRPC_GO_TLS_CERT_FILE=/path/to/cert.pem\n  export GRPC_GO_TLS_KEY_FILE=/path/to/key.pem\n  ./your_server",
      "success_rate": 0.85,
      "how": "If using a custom path, set the GRPC_GO_TLS_CERT_FILE and GRPC_GO_TLS_KEY_FILE environment variables before starting the server:\n  export GRPC_GO_TLS_CERT_FILE=/path/to/cert.pem\n  export GRPC_GO_TLS_KEY_FILE=/path/to/key.pem\n  ./your_server",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Verify the certificate file exists and has correct permissions. Run:\n  ls -la /etc/ssl/certs/server.crt\n  If missing, generate or copy the certificate. Example using OpenSSL:\n  openssl req -x509 -newkey rsa:4096 -keyout /etc/ssl/certs/server.key -out /etc/ssl/certs/server.crt -days 365 -nodes\n  Then update the gRPC server config to point to the correct paths.",
    "If using a custom path, set the GRPC_GO_TLS_CERT_FILE and GRPC_GO_TLS_KEY_FILE environment variables before starting the server:\n  export GRPC_GO_TLS_CERT_FILE=/path/to/cert.pem\n  export GRPC_GO_TLS_KEY_FILE=/path/to/key.pem\n  ./your_server"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://grpc.io/docs/guides/auth/#with-server-authentication-ssltls",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.9,
  "fix_success_rate": 0.95,
  "resolvable": "true",
  "first_seen": "2023-09-05",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}