RandomKeygen
15 min read
GUIDEENCRYPTION

CNSA 2.0 Migration Guide: Algorithms, Deadlines & Developer Checklist

An engineering runbook for the NSA's Commercial National Security Algorithm Suite 2.0 and the December 2026 PP-26-4956 advisory—with exact OIDs, audit commands, and OpenSSL 3.5+ workflows.

What CNSA 2.0 specifies (exact algorithms & OIDs)

CNSA 2.0 (Commercial National Security Algorithm Suite 2.0) is the NSA's post-quantum cryptographic suite replacing CNSA 1.0 (RSA-3072+, ECDSA/ECDH P-384). While CNSA 2.0 formally governs U.S. National Security Systems (NSS) and defense contractors, it has become the de facto high-assurance PQC target across cloud and enterprise security programs.

FunctionCNSA 2.0 AlgorithmStandardNIST OIDMigration Notes
Symmetric EncryptionAES-256FIPS 197 (GCM / CBC+HMAC)2.16.840.1.101.3.4.1.46 (GCM)Required key size; AES-128 is not CNSA 2.0 compliant.
Cryptographic HashingSHA-384 or SHA-512FIPS 180-42.16.840.1.101.3.4.2.2 / .3SHA-256 is permitted only where mandated by external protocols.
Key Establishment (KEM)ML-KEM-1024FIPS 203 · RFC 99352.16.840.1.101.3.4.4.3Replaces RSA key transport, DH, and ECDH (P-256/P-384/X25519).
General Digital SignaturesML-DSA-87FIPS 204 · RFC 98812.16.840.1.101.3.4.3.19Replaces RSA, ECDSA, and Ed25519 for TLS certs, auth, and code signing.
Firmware / Software SigningLMS or XMSS (or ML-DSA-87)NIST SP 800-208Stateful hash-basedPreferred for hardware roots of trust with strict state management.

Generate spec-compliant CNSA 2.0 keys locally right now: ML-KEM-1024 · ML-DSA-87 · AES-256.

Compliance milestones (2027, 2030, 2035)

The NSA's December 2, 2026 advisory urges organizations to stop treating these dates as distant targets and begin immediate execution ahead of the January 1, 2027 acquisition gate:

DateMilestoneOperational Requirement
Dec 2, 2026NSA PP-26-4956 Emergency PushImmediate cryptographic inventory, TLS 1.3 hardening, firmware/CA planning, and accelerated CNSA 2.0 adoption.
Jan 1, 2027New NSS Acquisitions MandateAll newly acquired National Security Systems products must natively support CNSA 2.0 algorithms.
2030 – 2031Legacy Equipment Phase-OutSoftware, networking gear, and web/cloud services incapable of CNSA 2.0 must be phased out across NSS.
2033 – 2035Exclusive CNSA 2.0 OperationFull quantum resistance required across all National Security Systems; classical-only public-key suites retired.

NSA PP-26-4956 immediate action checklist

Mapped directly from the NSA's Immediate Actions to Push Toward Post-Quantum (PP-26-4956) advisory into concrete engineering tasks:

Track your progress0 of 6

Step 1: Build a cryptographic inventory (CBOM)

You cannot migrate what you cannot find. Start by cataloging every place public-key cryptography lives—TLS terminators, internal mTLS meshes, SSH bastions, IPsec/WireGuard gateways, code-signing pipelines, HSMs, and embedded firmware roots. Flag any RSA-2048, P-256, or legacy DH groups first.

Audit live endpoints & cert trees
# Inspect certificate signature & public-key algorithm on a live TLS endpoint
openssl s_client -connect api.example.com:443 -servername api.example.com </dev/null 2>/dev/null \
  | openssl x509 -noout -text \
  | grep -E "Signature Algorithm|Public Key Algorithm|Public-Key|ASN1 OID"

# Audit all local PEM certificates & keys in a repo or config tree
find /etc/ssl ./certs -type f \( -name "*.pem" -o -name "*.crt" \) 2>/dev/null | while read -r f; do
  echo "=== $f ==="
  openssl x509 -in "$f" -noout -subject -dates -text 2>/dev/null \
    | grep -E "subject=|notAfter=|Public Key Algorithm|Public-Key|ASN1 OID"
done

# Check SSH server host keys and allowed KEX algorithms
ssh -G your-server.example.com | grep -E "^(kexalgorithms|hostkeyalgorithms) "

Step 2: Harden TLS 1.3, SSH, and VPNs immediately

Before rewriting application code or replacing hardware, you can eliminate the largest harvest-now, decrypt-later exposure through configuration and package upgrades:

  • TLS 1.3 + Hybrid PQC: Disable TLS 1.0/1.1, drop legacy RSA key transport ciphers, and enable hybrid X25519MLKEM768 (or MLKEM1024 for CNSA 2.0 peering) at your CDN, reverse proxy, or ingress controller (Nginx + OpenSSL 3.5+, Envoy, Cloudflare, AWS ALB/CloudFront).
  • SSH: Upgrade clients and bastion hosts to OpenSSH 9.9+/10.0+ so connections negotiate mlkem768x25519-sha256 automatically. See SSH Key Generation.
  • VPNs: For WireGuard, enforce a unique 256-bit PresharedKey per peer (see WireGuard Key Generator). For IPsec/IKEv2, enable RFC 9370 intermediate key exchanges with ML-KEM or RFC 8784 post-quantum preshared keys.

Step 3: OpenSSL 3.5+ ML-KEM & ML-DSA command runbook

OpenSSL 3.5+ (and 3.6+) ships native FIPS 203 and FIPS 204 support out of the box. Notice the output_formats=seed-only parameter—it emits compact RFC 9935 / RFC 9881 seed-based PKCS#8 private keys identical to those generated by RandomKeygen's ML-KEM and ML-DSA tools:

OpenSSL 3.5+ CNSA 2.0 runbook
# 1. Generate a CNSA 2.0 ML-KEM-1024 key pair (seed-only PKCS#8 per RFC 9935)
openssl genpkey -algorithm ML-KEM-1024 -provparam ml-kem.output_formats=seed-only -out mlkem1024.pem
openssl pkey -in mlkem1024.pem -pubout -out mlkem1024.pub.pem

# 2. Generate a CNSA 2.0 ML-DSA-87 signing key pair (seed-only PKCS#8 per RFC 9881)
openssl genpkey -algorithm ML-DSA-87 -provparam ml-dsa.output_formats=seed-only -out mldsa87.pem
openssl pkey -in mldsa87.pem -pubout -out mldsa87.pub.pem

# 3. Create a self-signed ML-DSA-87 test CA certificate (for internal PKI testing)
openssl req -new -x509 -key mldsa87.pem -out mldsa87-ca.crt -days 3650 \
  -subj "/CN=Internal CNSA 2.0 Test Root CA"

# 4. Sign & verify a software release manifest with ML-DSA-87
openssl pkeyutl -sign -inkey mldsa87.pem -rawin -in SHA512SUMS -out SHA512SUMS.sig
openssl pkeyutl -verify -pubin -inkey mldsa87.pub.pem -rawin -in SHA512SUMS -sigfile SHA512SUMS.sig
Cryptographic agility beats one-off rewrites: Avoid hardcoding algorithm names, fixed 64-byte signature columns, or static ASN.1 parsers. Store algorithm identifiers alongside keys (SPKI/PKCS#8 PEM, JWK alg/kid) so rotating from hybrid to pure CNSA 2.0—or to a future backup algorithm like SLH-DSA—is a config change instead of a schema migration.

Triage matrix: what to migrate first vs. later

  1. Priority 1 (Do now): External TLS 1.3, VPN tunnels, SSH key exchange, and encrypted long-term storage/email—anything exposed to harvest-now, decrypt-later capture.
  2. Priority 2 (Next quarter): Hardware roots of trust, firmware signing, container/package signing, and long-lived internal Root CAs that have 5–15 year replacement cycles.
  3. Priority 3 (Planned roadmap): Internal mTLS leaf certificates, asymmetric OAuth/JWT signing keys with short TTLs (minutes to hours), and SSH user authentication keys once OpenSSH PQ auth standardizes.
  4. No migration needed: AES-256 data-at-rest encryption, SHA-384/SHA-512 digests, HMAC-SHA384/512 webhooks, Argon2id password hashes, and 256-bit API keys.

Frequently asked questions

Does CNSA 2.0 allow AES-128 or SHA-256?

No for general CNSA 2.0 compliance—CNSA 2.0 requires AES-256 and SHA-384 or SHA-512 to preserve a full 128-bit+ security margin against quantum Grover/collision attacks.

Do I need to replace RSA-4096 and P-384 if we already upgraded from RSA-2048 and P-256?

Yes, eventually. Larger classical keys like RSA-4096 and P-384 buy breathing room against classical cryptanalysis and satisfy CNSA 1.0, but Shor's algorithm breaks them too. Treat them as transitional while moving directly to ML-KEM-1024 and ML-DSA-87.