How to Optimize TLS Performance for Short-Lived Certificates and Post-Quantum Cryptography

For years, SSL/TLS optimization was a relatively straightforward mathematical exercise: offload RSA decryption to hardware, enable session resumption, and move on. Today, network and security engineer...

Tim Henrich
November 24, 2026
6 min read
21 views

How to Optimize TLS Performance for Short-Lived Certificates and Post-Quantum Cryptography

For years, SSL/TLS optimization was a relatively straightforward mathematical exercise: offload RSA decryption to hardware, enable session resumption, and move on. Today, network and security engineering teams face a contradictory challenge. Web performance standards demand ultra-low latency and near-instant Time to First Byte (TTFB), while modern security mandates require significantly heavier cryptography and aggressively shortened certificate lifecycles.

With Google’s push to reduce maximum public certificate validity to 90 days and NIST’s finalization of the first Post-Quantum Cryptography (PQC) standards in August 2024, the landscape has fundamentally shifted. Optimizing TLS is no longer just about reducing CPU overhead; it is an architectural challenge centered on protocol efficiency, transport layer upgrades, and relentless automation.

This post breaks down the technical implementations required to maintain optimal TLS performance while adapting to modern cryptographic and lifecycle requirements.

The Cryptographic Weight Problem: RSA, ECDSA, and PQC

The size of the data exchanged during a TLS handshake directly impacts connection latency. Every byte matters, particularly during the initial connection phase.

Sunsetting RSA for ECDSA

If your infrastructure is still defaulting to RSA keys, you are incurring unnecessary performance penalties. ECDSA (Elliptic Curve Digital Signature Algorithm) has become the modern standard for a simple mathematical reason: it provides equivalent security to RSA at a fraction of the key size.

An ECDSA 256-bit key delivers the same cryptographic strength as an RSA 3072-bit key. Because the keys and the resulting digital signatures are drastically smaller, less data is transmitted over the wire during the handshake, and the server requires significantly fewer CPU cycles to generate the signature.

When Cloudflare transitioned millions of domains from RSA to ECDSA, they recorded a massive reduction in global CPU utilization and shaved critical milliseconds off TTFB for billions of daily requests.

To generate an ECDSA private key and Certificate Signing Request (CSR) using OpenSSL, you can use the following command:

# Generate a prime256v1 (NIST P-256) ECDSA private key
openssl ecparam -genkey -name prime256v1 -out server-ecdsa.key

# Generate the CSR
openssl req -new -sha256 -key server-ecdsa.key -out server-ecdsa.csr

The Impending Latency Hit of Post-Quantum Cryptography

While ECDSA shrinks payloads, the transition to Post-Quantum Cryptography threatens to bloat them again. In August 2024, NIST finalized FIPS 203 (ML-KEM), FIPS 204 (ML-DSA), and FIPS 205 (SLH-DSA).

Testing of these algorithms reveals a significant performance hurdle: PQC algorithms require massively larger key sizes and signatures. A standard TLS handshake using ML-KEM can be up to 30 times larger than an ECDSA handshake.

This size increase causes immediate issues at the TCP layer. TCP relies on an Initial Congestion Window (initcwnd), typically set to 10 or 14 packets (roughly 14KB to 20KB). If the TLS certificate chain and PQC signature exceed this window, the server must wait for the client to acknowledge receipt of the first batch of packets before sending the rest. This introduces an entirely new round trip, spiking latency.

To prepare for this, organizations are beginning to test hybrid certificates—which contain both a classical ECDSA key and a quantum-resistant key—to ensure backward compatibility while bridging the gap to a post-quantum standard.

Protocol-Level Handshake Optimizations

To offset the heavier payloads of modern cryptography, you must strip latency out of the transport and presentation layers.

Enforcing TLS 1.3 and 1-RTT

TLS 1.3 is not just a security upgrade; it is a profound performance enhancement. TLS 1.2 required two full round trips (2-RTT) between the client and server just to negotiate the connection before any application data could be sent.

TLS 1.3 redesigns the state machine, combining the cryptographic negotiation and the key exchange into a single step. This reduces the handshake to 1-RTT. Furthermore, TLS 1.3 enforces Perfect Forward Secrecy (PFS) by default, completely removing support for static RSA key exchanges. Over 70% of top websites now prefer TLS 1.3, making it a baseline expectation for modern infrastructure.

Implementing 0-RTT (Early Data) with Caution

TLS 1.3 introduces a feature called 0-RTT, or "Early Data." If a client has previously connected to your server, it can use Pre-Shared Keys (PSKs) from the prior session to send encrypted HTTP requests in the very first flight of data, completely eliminating handshake latency for returning visitors.

Security Warning: 0-RTT is highly susceptible to Replay Attacks. Because the Early Data is sent before the server can guarantee the client's current state, an attacker on the network could intercept the 0-RTT packet and resend it multiple times.

For this reason, 0-RTT must only be enabled for idempotent requests—such as HTTP GET requests that do not alter server state or execute database writes.

Here is an example of enabling TLS 1.3 and Early Data in NGINX, while specifically instructing the proxy to only allow safe requests:

server {
    listen 443 ssl;
    server_name api.example.com;

    # Enforce TLS 1.3
    ssl_protocols TLSv1.3;

    # Enable 0-RTT
    ssl_early_data on;

    location / {
        # Pass the early data state to the backend application
        # so it can reject non-idempotent requests if necessary
        proxy_set_header Early-Data $ssl_early_data;

        # Standard proxy headers
        proxy_pass http://backend_upstream;
    }
}

Migrating to HTTP/3 (QUIC)

Because PQC payloads threaten to exceed TCP congestion windows, the most effective mitigation strategy is abandoning TCP altogether.

HTTP/3 runs over QUIC, a transport protocol built on UDP. QUIC integrates the TLS 1.3 handshake directly into its own connection setup. This means connection establishment and encryption negotiation happen simultaneously. Furthermore, QUIC handles packet loss and congestion control on a per-stream basis, meaning a dropped packet in a massive PQC handshake won't block the entire connection (Head-of-Line Blocking). Migrating edge termination to HTTP/3 is rapidly becoming the standard strategy for absorbing the overhead of post-quantum algorithms.

Streamlining Certificate Delivery

Even with optimized algorithms and protocols, how you deliver the certificate to the client matters.

OCSP Stapling

When a browser receives a certificate, it needs to know if that certificate has been revoked. Historically, the browser would pause the connection, perform a DNS lookup for the Certificate Authority's OCSP responder, and make an HTTP request to the CA to check the status. This added massive latency and created privacy leaks.

OCSP Stapling shifts this burden to the server. Your web server periodically queries the CA in the background, retrieves a time-stamped, cryptographically signed assertion of the certificate's validity, and "staples" it directly to the TLS handshake. The client gets the proof of validity without ever having to contact the CA.

To configure OCSP Stapling in NGINX, you must provide the server with a trusted certificate chain so it can verify the OCSP response:

server {
    listen 443 ssl;
    server_name secure.example.com;

    ssl_certificate /etc/ssl/certs/server-ecdsa.crt;
    ssl_certificate_key /etc/ssl/private/server-ecdsa.key;

    # Enable OCSP Stapling
    ssl_stapling on;
    ssl_stapling_verify on;

    # Point to the chain of trust (Intermediate + Root)
    ssl_trusted_certificate /etc/ssl/certs/ca-certs.pem;

    # Use a reliable DNS resolver for the OCSP queries
    resolver 1.1.1.1 8.8.8.8 valid=300s;
    resolver_timeout 5s;
}

Certificate Chain Minimization

A common misconfiguration is sending the entire certificate chain—including the Root CA—during the handshake. Sending the Root CA is a waste of bandwidth. The client's operating system or browser must already have the Root CA in its local trust store to validate the chain; if it doesn't, sending it

Share This Insight

Related Posts