# WARNING: The repository located at internal-pypi.local is not a trusted or secure host and is being ignored.

- **ID:** `python/pip-index-url-ssl-hostname-mismatch`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Using an HTTP or self-signed internal index without configuring pip to trust it.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   cat > ~/.pip/pip.conf <<'EOF'
[global]
index-url = https://internal-pypi.local/simple
trusted-host = internal-pypi.local
EOF
pip install foo
   ```
2. **** (85% success)
   ```
   export PIP_CERT=/path/to/ca.pem
pip install --index-url https://internal-pypi.local/simple foo
   ```

## Dead Ends

- **** — pip refuses plain HTTP by default and warns/ignores the index. (70% fail)
- **** — Breaks other HTTPS connections and security. (90% fail)
