MODRACXKENNETH D'SILVA

<- Archive & Insights

Implementing HTTP/2 and TLS 1.3 for Secure, Fast Ecommerce

TLS 1.3 reduces cryptographic connection handshake times from 2-RTT to 1-RTT (or 0-RTT for returning visitors). Learn how to configure Nginx for HTTP/2 multiplexing and forward secrecy.

By Kenneth D'SilvaReading Time: 36 min readCategory: Security & Compliance

Nginx TLS 1.3 & HTTP/2 Configuration

# Production Nginx SSL Configuration for TLS 1.3 & HTTP/2
server {
    listen 443 ssl http2;
    server_name modracx.com;

    ssl_certificate /etc/letsencrypt/live/modracx.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/modracx.com/privkey.pem;

    # TLS Protocols & High-Security Cipher Suites
    ssl_protocols TLSv1.2 TLSv1.3;
    ssl_ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;
    ssl_prefer_server_ciphers off;

    # OCSP Stapling
    ssl_stapling on;
    ssl_stapling_verify on;
    resolver 1.1.1.1 8.8.8.8 valid=300s;
}

Suggested & Related Reading

Explore related engineering guides from Kenneth D'Silva: