Crypto-Agility for Client Servers: Edge-to-Origin TLS, PKI, VPNs and Legacy Containment
System architecture for hardening client servers after NSA PP-26-4956: CycloneDX CBOM discovery, edge-to-origin post-quantum TLS 1.3 (Nginx OpenSSL 3.5+, Caddy 2.10+, Cloudflare), Campus Moodle SAML/OIDC PKI rotation, WireGuard/Rosenpass, age PQ backups and legacy containment.
Hardening developer SSH solves only one corridor into client infrastructure. Every external browser session, Campus Moodle/SSO login, API webhook, database replication stream, VPN tunnel and offsite backup also depends on classical asymmetric primitives that NSA Advisory PP-26-4956 (Immediate Actions to Push Toward Post-Quantum) and the December 2026 “post-AI” briefings placed on accelerated replacement schedules.
Cloudflare’s Project Quantum Leap response — pulling its full post-quantum deadline forward by two years to 2027 — highlights a crucial infrastructure reality: edge CDNs already handle X25519MLKEM768 for most browsers, while internal PKI, origin servers, SSO identity keys, databases and archival storage remain the slowest, highest-impact layers to upgrade.
1. Automated Cryptographic Bill of Materials (CBOM) discovery
PP-26-4956 puts cryptographic inventory first because production environments accumulate hidden RSA-2048 and P-256 keys inside places normal vulnerability scanners ignore. Instead of relying on spreadsheets that go stale in a week, emit a lightweight CycloneDX-aligned CBOM record per service endpoint in CI/inventory sweeps:
{
"asset": "moodle-prod.faculty.example",
"owner": "faculty-it-team",
"dataHorizonYears": 7,
"endpoints": [
{
"layer": "tls-origin",
"protocol": "TLS 1.3",
"kexGroup": "X25519MLKEM768",
"certAlgorithm": "RSA-3072",
"openssl": "3.5.0",
"upgradeable": true
},
{
"layer": "saml-sp-signing",
"protocol": "SAML 2.0",
"keyAlgorithm": "RSA-2048",
"xmlEnc": "AES-256-GCM",
"action": "rotate-dual-key-to-RSA-4096"
}
]
}
Gather live state across five blind spots:
- TLS edge & internal origins:
openssl s_client -groups X25519MLKEM768 -tls1_3andnmap --script ssl-enum-ciphers. - Ubuntu Server OS baselines: compare Ubuntu 24.04 LTS (
OpenSSL 3.0.x, no native ML-KEM) against Ubuntu 26.04 LTS (OpenSSL 3.5.x, native ML-KEM and ML-DSA). - Kubernetes / container Ingress & Secrets: inspect
tls.crtkey sizes and issuer types across cluster namespaces. - SAML IdP/SP metadata & OIDC JWKS: inspect
<ds:X509Certificate>modulus bits and signature algorithms (sha1vs.sha256/sha384). - Backup scripts & VPN configs: check whether offsite database dumps and
moodledatasnapshots use plaintext, unrotated classical keys oragemlkem768x25519.
2. Edge-to-origin post-quantum TLS 1.3 (closing the “CDN-only trap”)
Putting Cloudflare in front of an Ubuntu 24.04 server leaves a quiet gap on internal or transit links:
┌─────────────────────────────────────────────────────────────────────────┐
│ THE "CDN-ONLY POST-QUANTUM TRAP" │
│ │
│ Browser ── X25519MLKEM768 ──► Edge CDN ── classical RSA/P-256 ──► App │
│ (PQ protected) (HNDL-exposed origin hop) │
└─────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────┐
│ TRUE EDGE-TO-ORIGIN CRYPTO-AGILITY │
│ │
│ Browser ── X25519MLKEM768 ──► Edge CDN ── X25519MLKEM768 ──► Origin │
│ (or Caddy 2.10+ / OpenSSL 3.5+ Nginx) │
└─────────────────────────────────────────────────────────────────────────┘
Reference configs: Nginx (OpenSSL 3.5+) vs. Caddy 2.10+
On Ubuntu 26.04 LTS (which ships OpenSSL 3.5+ natively), Nginx negotiates hybrid post-quantum TLS 1.3 directly:
# /etc/nginx/conf.d/pqc-tls.conf (Ubuntu 26.04 / OpenSSL 3.5+)
log_format pqc_telemetry '$remote_addr $status $ssl_protocol $ssl_curve "$ssl_curves"';
server {
listen 443 ssl http2;
server_name portal.client.example;
ssl_protocols TLSv1.3;
ssl_ecdh_curve X25519MLKEM768:SecP384r1MLKEM1024:X25519;
# Use RSA-3072+ or P-384 certificates as CNSA interim baseline until ML-DSA CAs land
ssl_certificate /etc/letsencrypt/live/portal.client.example/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/portal.client.example/privkey.pem;
ssl_stapling on;
ssl_stapling_verify on;
access_log /var/log/nginx/pqc.log pqc_telemetry;
}
On Ubuntu 24.04 LTS (which ships OpenSSL 3.0.x), avoid hacking production OS crypto libraries in place. Instead, terminate HTTPS in Caddy 2.10+ (which compiles Go’s native post-quantum TLS 1.3 stack independently of OpenSSL) and proxy over localhost to Apache/PHP-FPM/Moodle or Node:
portal.client.example {
tls {
protocols tls1.3
curves x25519mlkem768 secp384r1mlkem1024
}
reverse_proxy 127.0.0.1:8080
}
Canary warning: ML-KEM ClientHello fragmentation
Because X25519MLKEM768 adds a 1,184-byte ML-KEM-768 encapsulation key share, the TLS ClientHello grows to ~1.2–1.6 KB and often spans two TCP segments. Legacy campus deep-packet-inspection (DPI) middleboxes and misconfigured firewalls occasionally drop multi-packet ClientHello frames. Always canary-test on a staging hostname from campus Wi-Fi, VPNs and mobile carriers while monitoring $ssl_curve and TLS handshake failure rates before enforcing globally.
3. PKI, Campus Moodle SSO and JWKS private-key rotation
Authentication private keys inside Campus Moodle (auth_saml2, SimpleSAMLphp, Shibboleth SP), SAML 2.0 IdPs (Entra ID, ADFS, Shibboleth IdP), OIDC providers and LTI 1.3 tool registrations frequently sit untouched for 5–10 years on RSA-2048. Under post-AI pressure, those private keys need systematic rotation without dropping mid-semester logins.
Zero-downtime SAML 2.0 dual-key rollover
Never overwrite a single SAML signing certificate in place while metadata caches hold the old key:
- Generate the replacement RSA-4096 (or P-384) keypair:
openssl genrsa -out /etc/shibboleth/sp-signing-next.key 4096 openssl req -new -x509 -sha384 -days 730 \ -key /etc/shibboleth/sp-signing-next.key \ -out /etc/shibboleth/sp-signing-next.crt - Publish both certificates simultaneously in SP/IdP metadata (Shibboleth
CredentialResolver type="Chaining", SimpleSAMLphpcertificate+new_certificate, or Moodleauth_saml2dual-cert mode). - Wait out metadata TTLs (typically 24–72 hours) across every federated IdP/SP partner.
- Promote the new private key to active signing, verify assertions in production logs, wait another TTL window, and securely delete the old RSA-2048 private key.
- Harden XML algorithms: enforce
http://www.w3.org/2001/04/xmldsig-more#rsa-sha256(orsha384) for signatures andAES-256-GCMfor assertion encryption — disable SHA-1 andRSA-PKCS1-v1.5.
OIDC, LTI 1.3 JWKS and ACME agility
- OIDC & LTI 1.3: Rotate signing private keys cleanly via the JWKS endpoint using distinct
kididentifiers (nextkey published in/.well-known/jwks.json24 hours before issuing JWTs signed bynext), moving off RSA-2048 / ES256 toward P-384 (ES384) or RSA-3072+ while monitoring OIDC/LTI platform support for ML-DSA profiles. - ACME & future post-quantum CAs: Automate TLS issuance (
certbot --key-type ecdsa --elliptic-curve secp384r1orrsa --rsa-key-size 3072, or Caddy’s built-in ACME) with short certificate lifetimes and zero hardcoded public-key pinning so emerging ML-DSA and Merkle Tree Certificates drop in automatically once public roots roll out.
4. Beyond HTTP and SSH: VPNs, databases and archival backups
Client engagements consistently uncover three non-web layers where long-lived confidential data leaks under HNDL:
| Layer | Practical post-quantum / post-AI control | Notes |
|---|---|---|
| WireGuard VPNs | Generate distinct 256-bit PresharedKey per peer (wg genpsk) or deploy Rosenpass alongside WireGuard |
Feeds a post-quantum symmetric key into WireGuard’s native PSK slot without modifying kernel WireGuard |
| IPsec IKEv2 | Configure RFC 8784 Post-Quantum Preshared Keys (PPK) or RFC 9370 intermediate exchanges where firewall firmware supports it | Essential for campus/clinic site-to-site tunnels carrying sensitive records |
| Databases (PostgreSQL / MySQL) | Enforce TLS 1.3 with verify-full across app-to-DB and replication links; use AES-256-GCM for transparent/volume encryption at rest |
Avoid unencrypted VPC/campus-LAN DB traffic |
| Offsite backups & archives | Encrypt SQL dumps, moodledata and research archives with age hybrid mlkem768x25519 (age-keygen -pq) |
Highest HNDL exposure because object-storage snapshots persist for 7–10+ years |
5. Containing un-upgradable legacy systems (PP-26-4956 Action #5)
Every university, hospital-adjacent team and SME owns at least one system that cannot be upgraded tomorrow — a legacy lab instrument PC, a vendor ERP appliance on frozen OpenSSL 1.0/1.1, or a legacy Samba/SSH collector. PP-26-4956 explicitly mandates isolating and wrapping what cannot be upgraded:
┌───────────────────────────────────────────────────────────────────────────┐
│ LEGACY CONTAINMENT WRAPPER PATTERN │
│ │
│ Clients ── PQ TLS 1.3 (X25519MLKEM768) ──► Caddy / Ubuntu 26.04 Proxy │
│ ── or WireGuard + Rosenpass (mTLS + IP allowlist + WAF) │
│ │ │
│ isolated VLAN / loopback only │
│ ▼ │
│ Legacy Appliance / App │
│ (zero direct internet/LAN reach) │
└───────────────────────────────────────────────────────────────────────────┘
Place the un-upgradable host on a non-routable VLAN reachable only from the PQ proxy or WireGuard + Rosenpass bastion, log every cipher/KEX negotiation on the bastion so downgrade attempts trigger alerts, and attach a mandatory retirement or replacement date to the exception ticket.
6. CI/CD cryptographic regression gate
Treat cryptographic posture like unit tests: break the build or nightly health check if a deploy accidentally reverts to TLS 1.2, disables X25519MLKEM768, or installs an undersized certificate:
# .github/workflows/crypto-gate.yml — illustrative nightly & post-deploy check
name: crypto-regression-gate
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
verify-endpoints:
runs-on: ubuntu-26.04
steps:
- name: Verify PQ TLS 1.3 and key sizes
run: |
set -euo pipefail
for host in portal.client.example moodle.client.example; do
out=$(openssl s_client -groups X25519MLKEM768 -tls1_3 -connect "${host}:443" </dev/null 2>/dev/null)
echo "$out" | grep -q "Protocol : TLSv1.3"
echo "$out" | grep -q "Negotiated TLS1.3 group: X25519MLKEM768"
bits=$(echo "$out" | openssl x509 -noout -text 2>/dev/null | grep -E "Public-Key:|ASN1 OID:" || true)
echo "$host -> $bits"
if echo "$bits" | grep -qE "\((1024|2048) bit\)|prime256v1"; then
echo "Weak certificate key detected on $host: $bits" >&2
exit 1
fi
done
For SSH bastions, Git repositories and developer workstations, pair this pipeline with the SSH/Git verification script in Post-Quantum SSH and Git Infrastructure: Engineering Around NSA PP-26-4956, or explore our Cloud, DevOps & security services.
Hardening your servers, SSH, Git or SSO?
We run cryptographic inventories (CBOM), rotate SSH, Git, TLS and campus Moodle/SSO keys for post-quantum and post-AI resilience, harden Ubuntu and Windows servers, and provide ongoing care plans with full handover.