{
  "id": "flutter/dart-io-ssl-handshake-error",
  "signature": "HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:393))",
  "signature_zh": "HandshakeException：客户端握手错误（操作系统错误：CERTIFICATE_VERIFY_FAILED: ok(handshake.cc:393)）",
  "regex": "HandshakeException: Handshake error in client \\(OS Error: CERTIFICATE_VERIFY_FAILED: ok\\(handshake\\.cc:\\d+\\)\\)",
  "domain": "flutter",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "SSL certificate verification failed, typically due to a self-signed certificate, expired certificate, or missing intermediate CA in the device's trust store.",
  "root_cause_type": "generic",
  "root_cause_zh": "SSL 证书验证失败，通常由自签名证书、证书过期或设备信任存储中缺少中间 CA 导致。",
  "versions": [
    {
      "version": "Flutter 3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Dart 3.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "iOS 16",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Android 13",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Disables all certificate validation, creating a security vulnerability and may still fail on some platforms due to other TLS checks.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The underlying SSL issue persists; retrying without fixing the certificate chain will produce the same error.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The http package also relies on dart:io's underlying TLS implementation; the error will be identical.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the self-signed certificate to the device's trust store, or use a proper CA-signed certificate on the server.",
      "success_rate": 0.8,
      "how": "Add the self-signed certificate to the device's trust store, or use a proper CA-signed certificate on the server.",
      "condition": "",
      "sources": []
    },
    {
      "action": "If testing only, use a custom HttpClient with badCertificateCallback that validates the specific certificate fingerprint.",
      "success_rate": 0.7,
      "how": "If testing only, use a custom HttpClient with badCertificateCallback that validates the specific certificate fingerprint.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Add the self-signed certificate to the device's trust store, or use a proper CA-signed certificate on the server.",
    "If testing only, use a custom HttpClient with badCertificateCallback that validates the specific certificate fingerprint."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://api.flutter.dev/flutter/dart-io/HttpClient-class.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.75,
  "resolvable": "partial",
  "first_seen": "2023-06-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}