PQ Python

urllib3

Uses stdlib ssl, so it offers X25519MLKEM768 only on OpenSSL 3.5+ interpreters; its pyOpenSSL injection gives PQ even on OpenSSL 3.0 interpreters.

PyPI
urllib3
Version cited
2.8.015 Sep 2026
Downloads
n/a

Key exchange and encryption

PQ with action

PQ on OpenSSL ≥3.5 interpreters

Signatures and identity

PQ with action

ML-DSA chains need OpenSSL ≥3.5

What to do

Run on an OpenSSL 3.5+ interpreter; on Python 3.15 pass PoolManager(ssl_context=ctx) with set_groups() applied. On OpenSSL 3.0 hosts, inject_into_urllib3() with a current cryptography wheel gives the hybrid.

Since 1 Dec 2026 Nothing found as of 3 Dec 2026.

Details

urllib3 2.8.0 builds its contexts with stdlib ssl (urllib3 ssl_.py, 2.8.0 tag). It sets no groups, and ciphers= only affects TLS 1.2 and earlier.

Behavior#

  • OpenSSL ≥3.5 interpreter Tested through requests: Python 3.14.6 / OpenSSL 3.5.7 gave kex=X25519MLKEM768; Python 3.10.16 / OpenSSL 3.0.16 gave kex=X25519.
  • pyOpenSSL injection urllib3.contrib.pyopenssl.inject_into_urllib3() with a current cryptography wheel negotiated X25519MLKEM768 on Python 3.10.16 / OpenSSL 3.0.16, because the wheel brings OpenSSL 4.1.1 Claude. pyOpenSSL has no set_groups API (pyOpenSSL).
  • Custom context: PoolManager(ssl_context=ctx), where ctx is a 3.15 context with set_groups(...) applied (recipe).

The urllib3-future fork used by niquests is a separate package (niquests). The AGY report lists urllib3 among clients that inherit classical-only TLS on OpenSSL 3.0 hosts.

Sources cited on this page 2
  1. urllib3 ssl_.py github.com
  2. 2.8.0 tag github.com

All sources across the guide