Course description
Post-Quantum Django: TLS, Tokens and Data in Python teaches backend and platform engineers to act on the post-quantum guidance of 2 December 2026 in a Django or other Python service with PostgreSQL, Redis and Celery. You will inventory every public-key use in the service, move key exchange to the X25519MLKEM768 hybrid of RFC 10024 first (on OpenSSL 3.5 or later, with Python 3.15's ssl APIs, gunicorn and uvicorn hooks, PostgreSQL ssl_groups with verify-full, and Redis tls-groups), prove the negotiated group from outside with openssl s_client and a pytest gate, and plan authentication: interim RSA 3072 or P-384 JWT keys with kid and a JWKS, and readiness for ML-DSA under RFC 9964. Six local labs run against localhost with self-signed certificates and synthetic data. The capstone is a migration record for one service you run. ibl.ai wrote the course; no agency, standards body or project cited reviewed or endorsed it. Last verified 2026-12-03.
About this course
On 2 December 2026 the NSA advised an immediate acceleration of the transition to post-quantum cryptography, and ONCD, NSA and CISA issued a joint statement the same day. This course takes that direction into one kind of system: a Django or other Python web service with PostgreSQL, Redis and Celery. It follows four steps: find every public-key use, fix key exchange first by moving TLS to the hybrid X25519MLKEM768 group, verify the negotiated group from outside, then rotate keys and plan the rest. Facts come from the NSA and partner statements, NIST, the IETF RFCs and each project's own documentation; named experts' analysis, including Filippo Valsorda's reading of the advisory, is labelled as analysis. ibl.ai wrote this course; none of the agencies, standards bodies, projects or companies it cites reviewed or endorsed it.
What you will be able to do
- Explain what the NSA's 2 December 2026 advisory and the joint ONCD, NSA and CISA statement ask for, the two readings of the advisory, and why key exchange comes first, without claiming any algorithm is broken.
- Inventory every public-key use in a Django service, from inbound TLS and outbound HTTPS to PostgreSQL, Redis, Celery, tokens, federation and backups, and separate the symmetric uses that this migration does not replace.
- Get a Python service onto OpenSSL 3.5 or later and move each TLS path to the X25519MLKEM768 hybrid group of RFC 10024, using Python 3.15's ssl APIs, gunicorn and uvicorn hooks, PostgreSQL ssl_groups with verify-full, and Redis tls-groups.
- Prove the negotiated group from outside with SSLSocket.group(), openssl s_client and a pytest gate in CI, and record what each layer can and cannot report.
- Plan authentication: interim RSA 3072 or P-384 JWT keys with kid and a JWKS, a rehearsed rotation, and readiness for ML-DSA under RFC 9964, plus a re-encryption order for long-retained backups.
- Write a migration record for one Django service with evidence, owners, dates, rollbacks and the NIST IR 8547 timeline.
Who this course is for
Roles: backend and platform engineers who run Django or another Python web framework with PostgreSQL, Redis and Celery, and the security engineers who review their changes.
Before you start: the series' principles course, Post-Quantum Migration: What Changed and What to Do First, which one unit recaps. You should be comfortable with a terminal, a Python virtual environment and Django settings. The labs need Python 3.15 linked to OpenSSL 3.5 or later for the full experience; every lab runs locally against localhost with a self-signed certificate and synthetic data.
Format
Time: about 8 to 10 hours, self-paced. Level: intermediate. Hands-on: six local labs (an environment report, an inventory scan of a sample Django project, a TLS harness, psycopg and Redis checks, a pytest gate, and a JWT key rotation rehearsal), with an AI tutor that coaches each step from the output you paste.
Structure: a Start here section, four content sections (Find, Fix, Verify, Rotate and plan) of readings, worked examples, templates and labs, each ending in an AI assessment, and a capstone in which you write a migration record for one Django service you run, followed by a reading list.
Grading: the four section AI assessments count for 60 percent of the grade and the capstone assessment for 40 percent. The pass mark is 70 percent.
Currency
Last verified 2026-12-03 against the NSA and joint statements of 2 December 2026, NIST IR 8547, RFC 9954, RFC 10024 and RFC 9964, and the Python, Django, PostgreSQL, Redis, OpenSSL, PyJWT, Simple JWT and cryptography documentation the units link.
This guidance is changing quickly. Agencies may update their advisories, the IETF and NIST keep publishing, and every library in the stack ships new releases. Check the current version of each source before relying on any page or template, and test only systems your team runs or is authorized in writing to test. This course is training, not a security assessment of your systems.
Outline
Section 0 · Start here
- 0.1 Welcome and orientation
Section 1 · Find: inventory public-key cryptography in a Django service
- 1.1 Recap and the map of a Django service
- 1.2 Inventory labs and the record
- 1.3 Section 1 assessment
Section 2 · Fix: move key exchange to hybrid ML-KEM first
- 2.1 Key exchange first, on a runtime that can do it
- 2.2 Every other connection the service makes
- 2.3 Section 2 assessment
Section 3 · Verify: prove the negotiated group from outside
- 3.1 Prove what each connection negotiates
- 3.2 Keep it proved in CI and monitoring
- 3.3 Section 3 assessment
Section 4 · Rotate and plan: tokens, keys and the migration record
- 4.1 Signing keys and tokens
- 4.2 Data at rest, rollback and the plan
- 4.3 Section 4 assessment
Section 5 · Capstone and wrap-up
- 5.1 Capstone: a migration record for one Django service you run
- 5.2 Capstone assessment
- 5.3 Reading list and next steps