{
  "id": "python/pip-index-url-ssl-hostname-mismatch",
  "signature": "WARNING: The repository located at internal-pypi.local is not a trusted or secure host and is being ignored.",
  "signature_zh": "警告：位于 internal-pypi.local 的仓库不是受信任或安全的主机，已被忽略。",
  "regex": "WARNING:\\ The\\ repository\\ located\\ at\\ internal\\-pypi\\.local\\ is\\ not\\ a\\ trusted\\ or\\ secure\\ host\\ and\\ is\\ being\\ ignored\\.",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Using an HTTP or self-signed internal index without configuring pip to trust it.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用 HTTP 或自签名的内部索引，但未配置 pip 信任它。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "pip refuses plain HTTP by default and warns/ignores the index.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Breaks other HTTPS connections and security.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "cat > ~/.pip/pip.conf <<'EOF'\n[global]\nindex-url = https://internal-pypi.local/simple\ntrusted-host = internal-pypi.local\nEOF\npip install foo",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "export PIP_CERT=/path/to/ca.pem\npip install --index-url https://internal-pypi.local/simple foo",
      "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": "2025-04-11",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}