PQ Python

HTTPX

Builds a stdlib context with certifi CAs, so it offers X25519MLKEM768 only on OpenSSL 3.5+ interpreters; pass verify=ctx to control groups on Python 3.15.

PyPI
httpx
Version cited
0.29.026 Nov 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 httpx.Client(verify=ctx) with set_groups() and a TLS 1.3 minimum when you need to require the hybrid.

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

Details

HTTPX 0.29.0 creates its default context with ssl.create_default_context(cafile=certifi.where()) and accepts an SSLContext through verify= (httpx _config.py, 0.29.0 tag).

  • OpenSSL ≥3.5 interpreter X25519MLKEM768 automatically on OpenSSL 3.5+, like requests; classical X25519 on OpenSSL 3.0.
  • To require the hybrid on 3.15: httpx.Client(verify=ctx) with a context that calls set_groups(...) and sets TLSv1_3 (recipe).
  • On OpenSSL 3.0 hosts, the AGY report says the standalone rtls module can be used with httpx (import rtls as ssl) to get rustls with aws-lc-rs (niquests) AGY.
  • Updating certifi changes CA material, not the group.

HTTPX is a common outbound client in FastAPI services for IdP, JWKS and upstream API calls; that egress is a separate hop from ingress (FastAPI hops).

Sources cited on this page 2
  1. httpx _config.py github.com
  2. 0.29.0 tag github.com

All sources across the guide