Commit b317e1d
committed
PYTHON-5040 Use PROTOCOL_TLS_CLIENT in http_post for Python 3.14
Python 3.14 sets X509_V_FLAG_X509_STRICT in ssl.create_default_context(),
which requires Subject Key Identifier on all certs including the root CA.
We intentionally omit SKI from the CA cert because adding it causes macOS
SecTrust to trigger OCSP revocation checks during MongoDB 4.2 server
startup, resulting in ~67-second connection timeouts.
Using ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) instead gives the same
security guarantees (certificate verification, hostname checking) without
enabling strict mode, matching pre-Python-3.14 behavior.1 parent a71871f commit b317e1d
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3045 | 3045 | | |
3046 | 3046 | | |
3047 | 3047 | | |
3048 | | - | |
| 3048 | + | |
| 3049 | + | |
| 3050 | + | |
| 3051 | + | |
| 3052 | + | |
| 3053 | + | |
| 3054 | + | |
3049 | 3055 | | |
3050 | 3056 | | |
3051 | 3057 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3027 | 3027 | | |
3028 | 3028 | | |
3029 | 3029 | | |
3030 | | - | |
| 3030 | + | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
| 3034 | + | |
| 3035 | + | |
| 3036 | + | |
3031 | 3037 | | |
3032 | 3038 | | |
3033 | 3039 | | |
| |||
0 commit comments