PQ Python

Gunicorn

Terminates TLS with stdlib ssl, so it negotiates X25519MLKEM768 on OpenSSL 3.5+ interpreters; its ssl_context hook lets Python 3.15 require it.

PyPI
gunicorn
Version cited
27.0.1
Downloads
n/a

Key exchange and encryption

PQ with action

PQ on OpenSSL ≥3.5; 3.15 hook

Signatures and identity

Unknown

ML-DSA certificates not tested

What to do

Run Gunicorn on an OpenSSL 3.5+ interpreter or behind a PQ-capable proxy. On Python 3.15, define ssl_context in gunicorn.conf.py to call set_groups().

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

Details

Gunicorn 27.0.1 uses stdlib ssl (gunicorn config.py).

  • X25519MLKEM768 on 3.5.7 Tested on PBS 3.14.6 / OpenSSL 3.5.7 with a self-signed P-256 certificate and a 3.15.0 probe client.
  • The ssl_context(conf, default_ssl_context_factory) hook (21.0 and later; the Claude matrix abbreviates it as ssl_context(conf, factory) and the AGY report writes ssl_context(config, default_ssl_context_factory)) gives full control. Untested recipe for gunicorn.conf.py: def ssl_context(conf, default_ssl_context_factory): ctx = default_ssl_context_factory(); ctx.set_groups("X25519MLKEM768:X25519"); return ctx (recipes).
Sources cited on this page 1
  1. gunicorn config.py github.com

All sources across the guide