Skip to content

How to Enable OCSP Stapling

Key idea:

OCSP Stapling — the server fetches the OCSP response from the CA ahead of time and "staples" it to the TLS handshake. Without stapling, every client queries OCSP themselves → +100-300ms + URL leak to CA. nginx setup: 3 directives + a resolver. Pro and secure-by-default.

Below: step-by-step, working examples, common pitfalls, FAQ.

Step-by-Step Setup

  1. Get chain.pem from the CA (Let's Encrypt: /etc/letsencrypt/live/example.com/)
  2. In nginx server block add: ssl_stapling on; ssl_stapling_verify on;
  3. Set trusted certificate: ssl_trusted_certificate /path/to/chain.pem;
  4. Add resolver: resolver 1.1.1.1 8.8.8.8 valid=60s;
  5. nginx -t && systemctl reload nginx
  6. Verify: openssl s_client -connect example.com:443 -status < /dev/null 2>&1 | grep -A2 "OCSP Response"
  7. Enterno SSL shows OCSP Stapling = "Enabled"

Working Examples

ScenarioConfig
nginx minimal configserver { listen 443 ssl; ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /etc/letsencrypt/live/example.com/chain.pem; resolver 1.1.1.1 valid=60s; }
ApacheSSLUseStapling On\nSSLStaplingCache "shmcb:logs/ssl_stapling(32768)"
Verify successopenssl s_client -connect example.com:443 -status | grep "OCSP Response Status"
Must-Staple (enforce)certbot certonly --must-staple -d example.com # cert gets must-staple extension

Common Pitfalls

  • Forgetting resolver — nginx can't resolve the OCSP host → stapling breaks
  • chain.pem contains only server cert (no intermediate) — validation fails
  • Too aggressive resolver timeout — stapling disables itself periodically
  • Must-Staple cert + OCSP down — client can't connect (harsh but secure)
  • On first request nginx does a fresh OCSP fetch — a few early clients see latency
CertificateExpiry, issuer, domains (SAN)
ChainIntermediate and root CA validation
TLS ProtocolTLS version and cipher suite
VulnerabilitiesHeartbleed, POODLE, weak ciphers

Why teams trust us

TLS 1.3
supported
Full
CA chain check
<2s
result
30/14/7
days-to-expiry alerts

How it works

1

Enter domain

2

TLS chain verified

3

Expiry date & vulnerabilities

What Does the SSL Check Cover?

SSL/TLS is the encryption protocol that protects data between the browser and server. Our tool analyzes the certificate, chain of trust, TLS version, and knownvulnerabilities.

Certificate Details

Issuer, validity period, signature algorithm, covered domains (SAN), and validation type (DV/OV/EV).

Chain of Trust

Full chain verification: from leaf certificate through intermediates to root CA.

TLS Analysis

Protocol version (TLS 1.2/1.3), cipher suites, Perfect Forward Secrecy (PFS) support.

Expiry Alerts

Set up a monitor — get Telegram and email alerts 30/14/7 days before expiration.

DV vs OV vs EV Certificates

DV (Domain Validation)
  • Confirms domain ownership only
  • Issued in minutes automatically
  • Free via Let's Encrypt
  • Suitable for most websites
  • Most common certificate type
OV / EV
  • Organization (OV) or Extended Validation (EV)
  • Issued in 1-5 business days
  • Costs $50 to $500/year
  • For finance, e-commerce, government sites
  • Increases user trust

Who uses this

DevOps

SSL certificate monitoring

Security

TLS config audit

SEO

HTTPS as ranking factor

E-commerce

customer trust

Common Mistakes

Expired certificateBrowsers block sites with expired SSL. Set up auto-renewal or monitoring.
Incomplete certificate chainWithout intermediate CA, some browsers and bots cannot verify the certificate.
Mixed content on HTTPS siteHTTP resources on an HTTPS page — the browser lock icon disappears, reducing trust.
Using TLS 1.0/1.1Legacy TLS versions have known vulnerabilities. Use TLS 1.2+ or 1.3.
Domain mismatch in certificateThe certificate must cover all site domains, including www and subdomains.

Best Practices

Set up auto-renewalLet's Encrypt + certbot with cron — certificate renews automatically every 60-90 days.
Enable HSTSStrict-Transport-Security header forces browsers to always use HTTPS.
Use TLS 1.3TLS 1.3 is faster (1-RTT handshake) and safer — legacy ciphers removed.
Monitor expiration datesCreate a monitor on Enterno.io — get notified well before expiration.
Verify chain after renewalAfter certificate renewal, confirm that intermediate certificates are installed.

Get more with a free account

SSL certificate monitoring, check history and alerts 30 days before expiry.

Sign up free

Learn more

Frequently Asked Questions

Is OCSP Stapling required?

Not technically, but Qualys SSL Labs docks grade to A-. Mozilla recommends. Browsers with Must-Staple cert require it.

How often does nginx refetch OCSP?

nginx caches the response for several hours (not directly tunable, depends on OCSP response cache control).

Does Let's Encrypt support OCSP?

Yes, fully. Their responder ocsp.int-x3.letsencrypt.org runs 24/7.

How do I verify stapling works?

<a href="/en/ssl">Enterno SSL</a> → TLS section → "OCSP Stapling: Active" + <code>openssl s_client -status</code>.