# requests.exceptions.SSLError: HTTPSConnectionPool(host='incomplete.example.com', port=443): 超过最大重试次数 (由SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] 证书验证失败：无法获取颁发者证书'))引起)

- **ID:** `python/requests-connectionerror-ssl-certificate-verify-failed-unable-to-get-issuer`
- **领域:** python
- **类别:** network_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

服务器未发送中间CA证书，客户端无法构建信任链。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **Configure the server to send the full certificate chain** (95% 成功率)
   ```
   Contact server administrator to include intermediate CA certificates in the server configuration.
   ```
2. **Provide the missing intermediate CA certificate locally** (85% 成功率)
   ```
   requests.get('https://incomplete.example.com', verify='/path/to/intermediate-ca.crt')
   ```

## 无效尝试

- **Disabling SSL verification** — Bypasses security; does not solve the missing intermediate certificate. (70% 失败率)
- **Manually downloading the certificate and using it incorrectly** — If the certificate chain is incomplete, the verification still fails. (80% 失败率)
