Harden & Migrate JWT / OIDC Signers (ES256 / RS256) for PQC
Finding / Symptom: OIDC /.well-known/openid-configuration JWKS publishes ES256 (P-256), Ed25519, or RSA-2048 signing keys flagged by NSA PP-26-4956.
Reduce JWT lifetimes, rotate away from 256-bit ECC / RSA-2048 signing keys toward CNSA 1.0 interim (ES384 / PS384 / RSA-3072+), and enable multi-kid JWKS rotation ahead of ML-DSA.
Copy-Paste Configuration Fix
// 1. Keep access token TTL short (5-15 min) + rotate signing keys via kid in JWKS
// 2. Interim CNSA 1.0 step before IdP ML-DSA support: ES384 (P-384) or PS384 (RSA-3072+)
// 3. Never expose private ('d') or symmetric ('k') JWK parameters in public jwks_uri
const jwtSignOptions = {
algorithm: 'ES384', // CNSA 1.0 interim stopgap until JOSE ML-DSA rollout
expiresIn: '15m',
keyid: 'auth-2026-q4-p384',
};
Verify Live
npx quantafeed-pqc-scan domain yourdomain.com
Test your stack live: OIDC / OAuth JWKS Quantum Checker
Frequently Asked Questions
- Can I switch JWT signing to ML-DSA today?
- IETF JOSE/COSE ML-DSA drafts are rolling out across identity providers. Until your IdP supports ML-DSA, shorten token lifetimes, support seamless multi-kid JWKS rotation, and move off RSA-2048 / ES256 to ES384 or RSA-3072+.