Post-Quantum TLS 1.3 Engineering

PQC inside HTTPS: ML-DSA-65, X25519MLKEM768 and TLS 1.3.

ML-DSA-65 (NIST FIPS 204) is a digital signature algorithm, not an encryption cipher. Full post-quantum HTTPS pairs X25519MLKEM768 (RFC 10024) and AES-256-GCM for encryption with ML-DSA-65 for X.509 certificates and TLS 1.3 handshake authentication.

Why ML-DSA-65 authenticates HTTPS while ML-KEM encrypts it

TLS 1.3 separates confidentiality from authentication. Trying to use ML-DSA-65 to encrypt HTTP bytes is a category error; a complete post-quantum HTTPS stack uses three distinct primitives together.

TLS 1.3 function Post-quantum primitive Standard Threat mitigated What happens in the handshake
Key establishment X25519MLKEM768 (hybrid) IETF RFC 10024 (Aug 2026) · NIST FIPS 203 Harvest-now, decrypt-later (Shor's algorithm) Client sends X25519 + ML-KEM-768 public key; server encapsulates shared secret; HKDF derives ephemeral traffic keys.
Bulk encryption AES-256-GCM or ChaCha20-Poly1305 RFC 8446 · FIPS 197 Passive eavesdropping & tampering Encrypts all HTTP headers and bodies using the 256-bit ephemeral traffic keys. Grover's algorithm does not break 256-bit AEAD.
Server authentication ML-DSA-65 NIST FIPS 204 · RFC 9881 · draft-ietf-tls-mldsa Active quantum man-in-the-middle impersonation Signs the X.509 certificate chain and the TLS 1.3 CertificateVerify transcript hash so the client knows it is talking to the real server.
Application receipt ML-DSA-65 over payload NIST FIPS 204 · RFC 9964 (JOSE/COSE) Post-TLS tampering or non-repudiation loss Signs the HTTP response body (signed_payload) so evidence remains verifiable offline after TLS terminates at a CDN or proxy.
Key engineering takeaway: Deploy X25519MLKEM768 first to stop harvest-now, decrypt-later immediately (supported by major browsers today; Cloudflare reported 73% of human traffic on 1 December 2026). Deploy ML-DSA-65 authentication on private PKI, mTLS and service meshes now, and track public Web PKI CA rollouts for public-facing leaf certificates.

Wire sizes, ASN.1 OIDs and TCP initial window impact

Post-quantum lattice keys and signatures are significantly larger than elliptic-curve equivalents. Size buffers, MTU and certificate chains accordingly.

Handshake component Classical (X25519 + ECDSA P-256) Post-quantum (X25519MLKEM768 + ML-DSA-65) Engineering impact
ClientHello key_share 32 bytes 1,216 bytes (1,184 B ML-KEM-768 + 32 B X25519) Fits inside a single 1,500-byte Ethernet frame if extensions are lean; watch legacy middleboxes that drop >1,400 B ClientHello packets.
ServerHello key_share 32 bytes 1,120 bytes (1,088 B ciphertext + 32 B X25519) Negligible latency on broadband; adds ~1 KB to server flight.
CertificateVerify signature ~71 bytes (DER) 3,309 bytes (fixed raw ML-DSA-65 signature) Deterministic fixed size; no DER length variance.
Leaf X.509 certificate ~800 bytes ~5.5 KB (1,952 B pubkey + 3,309 B issuer sig + TBS) SPKI DER encoding of ML-DSA-65 public key is 1,974 bytes (22-byte ASN.1 header + 1,952-byte raw key).
2-cert chain + CertificateVerify ~2.0 KB ~14.3 KB (leaf + intermediate + handshake sig) Approaches TCP IW10 (~14.6 KB). Adding a 3rd certificate pushes the ServerHello flight into an extra RTT unless RFC 8879 compression or Merkle Tree Certificates are used.

ASN.1 OIDs (IETF RFC 9881)

id-ml-dsa-44: 2.16.840.1.101.3.4.3.17 (NIST Cat. 2)

id-ml-dsa-65: 2.16.840.1.101.3.4.3.18 (NIST Cat. 3 · recommended balance)

id-ml-dsa-87: 2.16.840.1.101.3.4.3.19 (NIST Cat. 5)

TLS 1.3 SignatureScheme & Composite X.509

Standalone TLS 1.3 code points (draft-ietf-tls-mldsa): mldsa44 (0x0904), mldsa65 (0x0905), mldsa87 (0x0906).

Composite X.509 certificates (IETF RFC 10073, November 2026) pair ML-DSA-65 with ECDSA P-256 or Ed25519 inside a single certificate for dual-algorithm assurance.

Build and verify an ML-DSA-65 + X25519MLKEM768 HTTPS server with OpenSSL 3.5+

OpenSSL 3.5 (released April 2025, and shipped in Node.js 24.7+ / 26.x) includes native FIPS 203 (ML-KEM) and FIPS 204 (ML-DSA) support with no external OQS provider required.

Step 1 · Generate ML-DSA-65 Root CA & Server Certificate OpenSSL 3.5+
# 1. Generate ML-DSA-65 Root CA private key (FIPS 204)
openssl genpkey -algorithm ML-DSA-65 -out ca-mldsa65.key

# 2. Self-sign the ML-DSA-65 Root CA certificate (RFC 9881)
openssl req -x509 -new -key ca-mldsa65.key -days 3650 \
  -subj "/CN=AffixIO Internal PQ Root CA/O=AffixIO" \
  -addext "basicConstraints=critical,CA:TRUE,pathlen:1" \
  -addext "keyUsage=critical,keyCertSign,cRLSign" \
  -out ca-mldsa65.crt

# 3. Generate the HTTPS server ML-DSA-65 private key & CSR
openssl genpkey -algorithm ML-DSA-65 -out server-mldsa65.key
openssl req -new -key server-mldsa65.key \
  -subj "/CN=api.internal.example/O=AffixIO" \
  -out server-mldsa65.csr

# 4. Sign the server certificate with SAN and serverAuth EKU
cat > server-ext.cnf <<'EOF'
basicConstraints=critical,CA:FALSE
keyUsage=critical,digitalSignature
extendedKeyUsage=serverAuth
subjectAltName=DNS:api.internal.example,IP:127.0.0.1
EOF

openssl x509 -req -in server-mldsa65.csr \
  -CA ca-mldsa65.crt -CAkey ca-mldsa65.key -CAcreateserial \
  -days 365 -extfile server-ext.cnf -out server-mldsa65.crt
Step 2 · Run & Verify Full PQ TLS 1.3 Handshake X25519MLKEM768 + mldsa65
# Terminal 1: Start TLS 1.3 server requiring X25519MLKEM768 + ML-DSA-65
openssl s_server -accept 8443 \
  -cert server-mldsa65.crt -key server-mldsa65.key \
  -tls1_3 -groups X25519MLKEM768 -sigalgs mldsa65 -www

# Terminal 2: Connect and verify full post-quantum negotiation
openssl s_client -connect 127.0.0.1:8443 \
  -CAfile ca-mldsa65.crt -tls1_3 \
  -groups X25519MLKEM768 -sigalgs mldsa65 -brief

# Expected verified output:
# CONNECTION ESTABLISHED
# Protocol version: TLSv1.3
# Ciphersuite: TLS_AES_256_GCM_SHA384
# Peer certificate: CN = api.internal.example
# Signature type: mldsa65
# Verification: OK
# Server Temp Key: X25519MLKEM768

Production NGINX and Apache TLS 1.3 configuration

Both NGINX and Apache httpd inherit native X25519MLKEM768 and ML-DSA-65 support when linked against OpenSSL 3.5 or later.

NGINX (OpenSSL 3.5+) · Dual-cert + PQ key exchange nginx.conf
server {
    listen 443 ssl;
    http2 on;
    server_name api.internal.example;

    ssl_protocols TLSv1.3;
    ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1;
    ssl_conf_command SignatureAlgorithms mldsa65:ecdsa_secp256r1_sha256;

    # Primary ML-DSA-65 certificate for PQ-capable clients
    ssl_certificate     /etc/ssl/pqc/server-mldsa65.crt;
    ssl_certificate_key /etc/ssl/pqc/server-mldsa65.key;

    # Fallback ECDSA P-256 certificate for classical clients
    ssl_certificate     /etc/ssl/classic/server-ecdsa.crt;
    ssl_certificate_key /etc/ssl/classic/server-ecdsa.key;

    add_header Strict-Transport-Security "max-age=63072000; includeSubDomains" always;
}
Apache httpd (OpenSSL 3.5+) vhost_ssl.conf
<VirtualHost *:443>
    ServerName api.internal.example
    SSLEngine on
    SSLProtocol -all +TLSv1.3

    # Prefer hybrid ML-KEM-768 key agreement
    SSLOpenSSLConfCmd Groups X25519MLKEM768:X25519:prime256v1
    SSLOpenSSLConfCmd SignatureAlgorithms mldsa65:ecdsa_secp256r1_sha256

    # Serve ML-DSA-65 leaf + chain
    SSLCertificateFile    /etc/ssl/pqc/server-mldsa65.crt
    SSLCertificateKeyFile /etc/ssl/pqc/server-mldsa65.key

    Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains"
</VirtualHost>

Public Web PKI versus private mTLS and service meshes

Public internet HTTPS (browsers)

Key exchange: Ready in production today. Chrome, Firefox, Safari and Edge negotiate X25519MLKEM768 (RFC 10024) automatically against compatible CDNs and OpenSSL 3.5+ origins.

Authentication: Public Web PKI root programmes are still standardising compact post-quantum certificate delivery (including IETF draft-ietf-tls-mldsa, composite X.509 RFC 10073 and Merkle Tree Certificates draft-ietf-plants-merkle-tree-certs) to avoid bloating every public TLS handshake by 12–15 KB.

Private PKI, mTLS and API-to-API TLS

Full PQ ready today: Where you control both the client trust store and the server (internal microservices, B2B mTLS gateways, defence or government enclaves), you can deploy native ML-DSA-65 root CAs and leaf certificates alongside X25519MLKEM768 immediately using OpenSSL 3.5+.

Keep certificate chains to two certificates (leaf + root/intermediate) to stay within the TCP IW10 window and avoid an extra handshake round trip.

Why AffixIO also signs HTTP payloads with ML-DSA-65

TLS 1.3 protects bytes only between two network hops. Once HTTPS terminates at a CDN, API gateway or reverse proxy, the transport proof disappears.

AffixIO pairs HTTPS transport with application-layer ML-DSA-65 (NIST FIPS 204) attestations over canonical JSON payloads (response.signed_payload). Public verification keys are published at https://api.affix-io.com/v1/keys (schema affix.keys.v1, active key mldsa65-1bf342d458b982b2).

That allows a relying party, regulator or offline verifier to check the authenticity and integrity of an eligibility or agent-permission decision years after the HTTPS connection closed. You can test ML-DSA-65 signing, tamper detection and retired-key verification directly on the AffixIO Post-Quantum Cryptographic Verification Platform.

Post-quantum HTTPS questions

Can ML-DSA-65 encrypt HTTPS traffic directly?

No. ML-DSA-65 (NIST FIPS 204) is a digital signature algorithm, not an encryption or key-encapsulation scheme. In post-quantum HTTPS (TLS 1.3), confidentiality is established by ML-KEM (FIPS 203, specifically hybrid X25519MLKEM768 under RFC 10024) and bulk traffic is encrypted with AES-256-GCM or ChaCha20-Poly1305. ML-DSA-65 authenticates the server's X.509 certificate chain and the TLS 1.3 CertificateVerify handshake message.

What is the ASN.1 OID and TLS SignatureScheme code point for ML-DSA-65?

Under IETF RFC 9881, ML-DSA-65 uses ASN.1 OID 2.16.840.1.101.3.4.3.18 (id-ml-dsa-65). In TLS 1.3 (draft-ietf-tls-mldsa), the SignatureScheme code point is mldsa65 (0x0905).

How much handshake overhead does ML-DSA-65 add to TLS 1.3?

An ML-DSA-65 raw public key is 1,952 bytes and a signature is 3,309 bytes. A single leaf certificate is roughly 5.5 KB, and a two-certificate chain (leaf plus intermediate) plus the 3,309-byte CertificateVerify message adds roughly 14.3 KB to the ServerHello flight compared with roughly 2 KB for ECDSA P-256.

Can public web browsers trust native ML-DSA-65 HTTPS certificates today?

As of 3 December 2026, major browsers negotiate X25519MLKEM768 for post-quantum key agreement, but public Web PKI certificate authorities are still transitioning authentication via IETF draft-ietf-tls-mldsa, composite X.509 certificates (RFC 10073) and Merkle Tree Certificates. Native ML-DSA-65 TLS 1.3 certificates can be deployed today for private PKI, internal mTLS, service meshes and API-to-API links using OpenSSL 3.5 or later.

Why use ML-DSA-65 at the application layer if HTTPS already uses PQC?

HTTPS protects data in transit only until TLS terminates at a CDN, load balancer or reverse proxy. Application-layer ML-DSA-65 attestations sign the HTTP response payload itself so a downstream auditor or relying party can verify authenticity offline years later.