Skip to content
FunnelGuard

Fix guide by FunnelsGuard

OCSP stapling failures slowing first load: how to fix

OPS-069Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

OCSP stands for Online Certificate Status Protocol. It is a way for a browser to ask the certificate authority whether your HTTPS certificate has been revoked (cancelled early). Without stapling, the browser makes that request itself during the first connection.

With OCSP stapling, your web server asks the CA's OCSP responder on a schedule, keeps the signed answer, and sends it along with the certificate. The visitor's browser does not need an extra trip. A stapling failure means the server cannot fetch, cache or send that answer. Typical causes are a blocked outbound connection, a DNS problem on the server, a missing chain file or a cold cache after a restart.

Why it costs you leads or sales

Your first-load speed affects every landing page visit from ads, email and search. If a client has to make its own OCSP lookup, it waits on a third party before it can finish the secure connection. If the CA responder is slow or unreachable, the wait grows.

The impact is usually small and hits only some browsers and networks, which is why this issue is rated low. It matters most on paid traffic landing pages and checkout, where a slower start raises the chance a visitor leaves before the page appears.

Where the delay happens
  1. Visitor clicks adBrowser starts a TLS handshake with your server
  2. Server sends certificateNo stapled OCSP response attached
  3. Browser asks the CAExtra lookup to the OCSP responder
  4. Page starts loadingDelayed by the lookup

Without a working staple, the browser pauses the handshake to ask the CA directly.

Time to finish the secure handshakeExample numbers
Time to finish the secure handshake (example)Stapling working: 120 ms; No stapling, fast CA: 220 ms; No stapling, slow CA: 600 ms0230460120220600Stapling workingNo stapling, fast CANo stapling, slow CAms

Example: illustrative numbers only. A client doing its own OCSP lookup adds a round trip to the CA, and a slow responder adds more.

How to check if your site has it

Ask your server directly whether it sends a staple. You need a terminal with OpenSSL. Replace example.com with your hostname.

Test for a stapled OCSP responsebash
echo | openssl s_client -connect example.com:443 -servername example.com -status 2>/dev/null | grep -A 12 'OCSP'
How to read the output
You seeMeaning
OCSP response: no response sentStapling is off or the server has no cached response yet
OCSP Response Status: successful (0x0)A staple was sent
Cert Status: goodThe CA says the certificate is not revoked
This Update / Next Update datesThe window the response is valid for; it should be current

Also check your server error log. Nginx logs lines such as OCSP responder timed out or no OCSP responder URL in the certificate. Apache logs stapling errors in its error log when LogLevel includes ssl:info.

How to fix it

The fix depends on who runs your TLS. If a CDN or managed host terminates HTTPS, stapling is usually handled for you, and you should contact them. If you run the server, work through the steps below.

Fix stapling on a server you control
  1. Confirm the certificate has an OCSP URL

    Run openssl x509 -in cert.pem -noout -ocsp_uri. If it prints nothing, the certificate has no responder and stapling cannot work. Some CAs have stopped including OCSP URLs, so check with your CA.

  2. Enable stapling in the server config

    Turn it on and point to the full chain file (see the snippets below).

  3. Let the server reach the CA

    Allow outbound HTTP (port 80) from the server to the OCSP responder host, and make sure the server has a working DNS resolver.

  4. Use the full chain

    Serve the certificate plus intermediates. The server needs the issuer certificate to verify the OCSP response.

  5. Reload and warm the cache

    Reload the server, then request the site once or twice so it fetches the first response.

Where to change it
  1. Nginx: enable stapling

    In the server block with your certificate, add ssl_stapling on; ssl_stapling_verify on; ssl_trusted_certificate /path/chain.pem; resolver 1.1.1.1 8.8.8.8 valid=300s; then run nginx -t and reload.

  2. Apache: enable stapling

    Outside the VirtualHost add SSLUseStapling on and SSLStaplingCache "shmcb:logs/stapling-cache(150000)". Make sure SSLCertificateFile contains the chain or set SSLCertificateChainFile where your version supports it. Reload Apache.

Nginx OCSP staplingnginx
ssl_certificate     /etc/ssl/example.com/fullchain.pem;
ssl_certificate_key /etc/ssl/example.com/privkey.pem;

ssl_stapling on;
ssl_stapling_verify on;
ssl_trusted_certificate /etc/ssl/example.com/chain.pem;
resolver 1.1.1.1 8.8.8.8 valid=300s;
resolver_timeout 5s;

How to confirm it's fixed

Confirmation checks
  • openssl s_client -status shows 'OCSP Response Status: successful' and 'Cert Status: good'
  • The 'Next Update' date is in the future
  • The result is the same on a second and third run
  • The server error log shows no new OCSP timeouts after a reload
  • The same check works for both the www and apex hostnames
  • The check also works after a server restart, once the first request has warmed the cache

How to prevent it happening again

Keep stapling healthy
  • Keep outbound access to the CA's OCSP host open when you change firewall rules
  • Keep a working DNS resolver in the server config
  • Re-run the OpenSSL test after every certificate renewal or CA change
  • Re-test after server upgrades or config rewrites, since stapling lines are easy to lose
  • Avoid 'must-staple' certificates unless you monitor stapling closely
  • Document who owns TLS: you, your host or your CDN

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs your real customer journeys (forms, checkouts, booking and chat buttons) and checks the steps, tracking hits and lead delivery. It does not inspect TLS handshake details such as OCSP staples.

The kind of tool that fits is a TLS or SSL configuration scanner, or a server-side certificate monitor that reports on stapling, expiry and chain. Run the OpenSSL command above on a schedule, or use such a scanner, and keep FunnelGuard for the journey checks.

Questions people ask

What is OCSP stapling?

OCSP stapling is when your web server fetches a signed certificate-status answer from the certificate authority and sends it with the certificate during the TLS handshake. The visitor's browser then does not need to contact the CA itself. It saves a round trip on the first connection.

Why is my OCSP stapling not working?

Common causes are stapling not enabled in the config, a server that cannot reach the CA's OCSP host because of a firewall or DNS problem, a missing chain file, or a cold cache after a restart. It can also be that the certificate has no OCSP URL at all. Test with openssl s_client -status and read the server error log.

How do I check if OCSP stapling is enabled?

Run echo | openssl s_client -connect yourdomain.com:443 -servername yourdomain.com -status and look for 'OCSP Response Status: successful'. If it says 'no response sent', run it again after a few seconds, since some servers fetch the staple on first request. Still empty means stapling is off or failing.

Does a missing OCSP staple make my site show a security warning?

Usually not. Most modern browsers treat a missing or failed OCSP lookup as a soft failure and still load the page. The exception is a certificate issued with the 'must-staple' extension, where a missing staple can cause a connection error.

Does OCSP stapling affect page speed?

It can affect the first connection. Without a staple, a client may need an extra request to the CA before finishing the handshake. The effect is usually small and depends on browser, network and how fast the CA responder is.

How do I enable OCSP stapling on Nginx?

In the server block add ssl_stapling on;, ssl_stapling_verify on;, an ssl_trusted_certificate path to the chain file and a resolver line. Then run nginx -t and reload. Request the site once or twice and test with OpenSSL.

Can I fix OCSP stapling on Shopify, Wix or Squarespace?

No. These platforms manage TLS and certificates for you, so there is no stapling setting for site owners. If you think handshakes are slow, contact the platform's support.

Can FunnelGuard detect OCSP stapling problems?

No. FunnelGuard checks customer journeys, tracking hits and lead delivery, not TLS handshake details. For OCSP stapling use a TLS configuration scanner or a certificate monitor.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.