# requests.exceptions.SSLError: HTTPSConnectionPool(host='expired.example.com', port=443): Max retries exceeded with url: / (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired')))

- **ID:** `python/requests-sslerror-expired-certificate`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The server's SSL certificate has expired and is no longer valid.

## Version Compatibility

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

## Workarounds

1. **Renew the certificate on the server side** (95% success)
   ```
   Contact server administrator to renew the SSL certificate.
   ```
2. **Use a different endpoint or service that has a valid certificate** (80% success)
   ```
   requests.get('https://valid.example.com')
   ```

## Dead Ends

- **Setting verify=False to bypass the error** — Bypasses security but exposes to risks; does not fix the expired certificate. (60% fail)
- **Using a custom CA bundle with the expired certificate** — The certificate is expired, so it will still fail verification. (90% fail)
