Web server certificate automation compared: nginx, Apache, Caddy and others

Web servers differ in whether they run ACME natively, how they reload renewed certificates and how they report failed renewals. This page compares the documented behavior of each so you can choose or standardize a setup.

On this page

Which web servers handle ACME natively and which depend on an external client

If you run several web servers, the question that matters now is which of them can renew their own certificates and which need an outside process to do it. Public certificate lifetimes are falling: the Let's Encrypt timeline moves its default to 64-day certificates from 10 February 2027 and to 45-day certificates from 16 February 2028, and the CA/Browser Forum Baseline Requirements set a 100-day maximum from 15 March 2027 and 47 days from 15 March 2029. At 45 days, a renewal that depends on someone remembering to run a script becomes a recurring outage risk, so the first distinction to make is between servers that run ACME inside the server and servers that rely on an external process and a reload hook. Native ACME is built into nginx (through the ngx_http_acme_module), Apache (through mod_md, which the Apache documentation marks as Experimental), Caddy, Traefik and OpenLiteSpeed. Tomcat, and generally any server renewed by Certbot, depends on an external client and a reload step.

The choice is being made now because the rules are changing on fixed dates, and each option documents its own renewal behavior. nginx's ACME module supports http-01 and tls-alpn-01 challenges and lists RFC 9773 ARI support in its README, but it does not handle wildcard or regular expression server_name identifiers. Apache's mod_md supports http-01, tls-alpn-01 and dns-01 and enables ARI renewal by default, and a renewed certificate becomes active only after a restart or reload. Caddy enables HTTP and TLS-ALPN challenges by default and retries failures with backoff for up to 30 days. Traefik defaults to Let's Encrypt production and documents 30-day renewal starters, but its ACME reference page does not mention ARI. Tomcat's documented approach uses the TLSCertificateReloadListener, which checks every 86400 seconds by default and renews 14 days before expiry. Confirm which challenge types, ARI behavior and reload mechanism your chosen version supports in its own documentation before you standardize.

How each web server documents ACME, challenges, reloads and renewal timing

This table compares seven web servers and TLS hosts on ACME support, challenge types, ARI support, how a renewed certificate is activated, and wildcard handling. Read each row across the server's column to see what its own documentation states, and confirm exact behavior against the version you run.

ServerACME and challengesARI and activationWildcards
nginxNative ngx_http_acme_module implements RFC 8555 with http-01 (default) and tls-alpn-01README lists RFC 9773 ARI as implemented; reload by HUP to master, which rolls back if a new configuration failsNot supported for wildcard server_name identifiers
Apache mod_mdMarked Experimental, available since 2.4.30, supports http-01, tls-alpn-01 and dns-01MDRenewViaARI on by default; renewed certificate active on next restart or reloadSupported through dns-01 challenge
CaddyAutomatic HTTPS defaults to Let's Encrypt and ZeroSSL, with HTTP and TLS-ALPN challenges enabled by defaultrenewal_window_ratio (default 0.3333) is only a suggestion when the issuer uses ARIDNS challenge requires a custom build with a caddy-dns provider plugin
TraefikACME resolver supports dnsChallenge, tlsChallenge and httpChallenge; certificates stored in acme.jsonDocumentation says renewal starts 30 days before expiry; the ACME reference page does not mention ARIAvailable through dnsChallenge; confirm provider support in the Traefik documentation
OpenLiteSpeedBuilt-in ACME since version 1.9 with a daily checkRenews within 30 days of expirySupported only through a DNS provider API
TomcatDocumented approach relies on an external renewal process; no built-in ACME client is describedTLSCertificateReloadListener defaults to daysBefore 14 and checkPeriod 86400 seconds, or the Manager sslReload command reloads without restartNot described in the listed documentation; confirm with your certificate tooling
Node.jsNo built-in ACME; node-acme-client library implements RFC 8555server.setSecureContext, added in v11.0.0, swaps certificates without interrupting existing connectionsNot described in the listed documentation; confirm with your ACME client

What each web server documents about automation and its limits

nginx ships a native ACME module, ngx_http_acme_module, which implements RFC 8555 and handles the http-01 challenge by default and tls-alpn-01 as an option. The module does not accept wildcard or regular expression server_name identifiers, so wildcard names need a different approach. The project README lists RFC 9773 ARI as implemented, which means renewal timing can follow the certificate authority's renewal window instead of a fixed schedule.

  • Challenges: http-01 is the default; tls-alpn-01 is also supported.
  • Wildcard limit: wildcard and regular expression server_name identifiers are not supported by the module.
  • ARI: the README lists RFC 9773 ARI as implemented.
  • Reloads: nginx reloads by sending HUP to the master process, which checks the configuration syntax, rolls back to the old configuration if the new one fails to apply, and gracefully shuts down old workers.
  • Retries: the nginx control and module pages do not describe a retry schedule for failed renewals in the sources listed here; confirm this in the module documentation for your version.

Check that your wildcard names are handled by a separate client or DNS challenge, and that your reload step is covered by the rollback behavior before you rely on it.

What happens to a renewed certificate on each server: reload, restart or hot swap

A renewed certificate does nothing until the server loads it, and the way each server does that decides how much operational work every renewal creates. Renewal and activation are separate steps. Some servers pick up new certificate files on their own, some need a restart, and some need a signal that reloads configuration without dropping connections. Before you standardize a setup, confirm which of these your server uses, because a renewal that succeeds on disk can still leave the old certificate in service until someone or something triggers the reload.

nginx and Apache both document a clear activation path. nginx reloads by sending HUP to the master process, which checks the configuration syntax, rolls back to the old configuration if the new one fails to apply, and shuts down old worker processes gracefully. That rollback is the safety property to test on your own hosts. Apache's mod_md, marked Experimental, activates a renewed certificate on the next restart or reload, and its MDMessageCmd directive can run a command on events such as renewed, installed and errored, which is the usual place to hook a reload. Confirm the exact reload commands and directive syntax in each product's documentation for your version.

Tomcat and Node.js offer reload without restart. Tomcat's documented approach is an external process that renews the certificate, with the TLSCertificateReloadListener picking up the change, by default checking every 86400 seconds and acting 14 days before expiry, or the Manager sslReload command loading it on demand. Node.js servers can call server.setSecureContext, added in v11.0.0, to swap certificates without interrupting existing connections. Verify in your environment that the listener or call actually runs after each renewal, because a reload that never fires looks identical to a successful one until the old certificate expires.

Which situations each web server fits, based on what it documents

Each web server documents a different set of certificate automation features, and the gaps between them are where teams run into trouble. The cards below cover six common situations, with the documented support and the documented limits for each, so you can check your own setup against them.

Single server with public names

A single server with public hostnames is the simplest case. nginx has a native ACME module, ngx_http_acme_module, that implements RFC 8555 with the http-01 challenge as default and tls-alpn-01 also available. Apache's mod_md, which is marked Experimental, supports http-01, tls-alpn-01 and dns-01. Caddy enables HTTP and TLS-ALPN challenges by default. Check that port 80 or 443 is reachable from the internet for the challenge you choose, and confirm how each server reloads after renewal.

nginx ACME module docs

Many virtual hosts

Servers with many virtual hosts need one renewal process that covers every name without a manual step per site. nginx's ngx_http_acme_module does not support wildcard or regular expression server_name identifiers, so each name must be listed explicitly. Apache's mod_md documents support for multiple managed domains, and its MDMessageCmd can run a command on renewed, installed or errored events. Confirm how each server handles a failure on one name without stopping renewal for the rest.

Apache mod_md docs

Internal or local names

Public ACME CAs cannot issue certificates for internal or local names, so this case usually needs a different source. Caddy serves local and IP names from its own local CA, which is documented on the tls directive page. The nginx and Apache ACME features described on this page are documented for publicly reachable names. Check each server's documentation for internal name support before you plan the renewal path, and confirm which trust store clients will use.

Caddy tls directive

Wildcard certificates

Wildcard certificates need the dns-01 challenge, which requires a DNS provider plugin or API. Caddy's DNS challenge needs a custom build with a caddy-dns provider plugin. Apache's mod_md documents dns-01 support, and OpenLiteSpeed supports wildcards only through a DNS provider API. nginx's ngx_http_acme_module does not support wildcard server_name identifiers. Ask which DNS provider you use, confirm the plugin or API is maintained, and confirm the credentials are stored and rotated correctly.

Caddy automatic HTTPS

Java applications

Tomcat's documented approach is an external process that renews the certificate, with the TLSCertificateReloadListener loading the new certificate. By default the listener checks every 86400 seconds and renews 14 days before expiry. The Manager sslReload command can load a new certificate without a restart. Confirm the renewal process writes the keystore the connector reads, and confirm the reload path works on your version before you rely on it.

Tomcat listeners docs

Node.js apps behind a proxy

Node.js applications can swap certificates with server.setSecureContext, added in v11.0.0, without interrupting existing connections. The node-acme-client library implements RFC 8555 for issuance. When TLS terminates in front of the app, renewal happens at the proxy instead, and the same ACME options from the proxy page apply. Confirm which layer holds the private key and which layer reloads after renewal, and check that the app's version supports setSecureContext before you use it.

Node.js TLS API docs

Renewal flows differ: in-server ACME renews and activates itself, while external clients need a deploy hook

The diagram starts at the moment a certificate nears its renewal point. On the left, a server with built-in ACME, such as nginx with ngx_http_acme_module or Caddy, requests, validates and activates the new certificate inside the same process, so no external hand-off is needed. On the right, an external client such as Certbot renews the certificate file, then a deploy hook copies it into place and runs a reload step so the server reads it. Check that the hook runs only after a successful renewal and that the reload is confirmed, because a silent failure at either point leaves the old certificate in service until it expires.

Built-in ACME activates the certificate itself, while external clients rely on a deploy hook and reload.

How to choose a web server setup from your own estate

This sequence turns your current web server inventory into a decision on which automation approach fits each server, and it ends with a tested renewal path and failure monitoring. Each step produces a record you can review before you standardize anything.

  1. List every web server and its certificate names

    Start from your own inventory, not from memory. For each web server, record the software and version, the host it runs on, the virtual host or site it serves, and every certificate name it presents, including any internal names. Assign the owner who will confirm each row. The step is done when every server in scope has a row and nobody on the team knows of a server missing from the list. Check the list against your DNS records and load balancer configuration, since a server can be reachable under names that no one wrote down.

  2. Mark which names need wildcards or internal names

    For each certificate name in the inventory, mark whether it is a plain public hostname, a wildcard, or an internal name that a public certificate authority cannot validate in the usual way. This matters because the nginx ACME module does not support wildcard server_name identifiers, and Caddy serves local and IP names from its own local certificate authority. Wildcards generally need a DNS challenge, so note where your DNS provider has an API. The step is done when every name carries one of these marks and the owner of each wildcard or internal name is known.

  3. Check each option's challenge types and ARI support

    For each candidate server or ACME client, read the vendor documentation and record which challenge types it supports, such as http-01, tls-alpn-01 and dns-01, and whether it supports ACME Renewal Information (ARI) under RFC 9773. Confirm the exact version you run, because support can differ between releases and between editions. Where a feature is marked experimental or needs a custom build, record that too. The step is done when each server in the inventory has a documented challenge type that matches its names from the previous step and a stated answer on ARI. Where the documentation does not say, record that as an open question for the vendor.

  4. Choose a native or external renewal method per server

    Using the marks and the documented capabilities, decide for each server whether its built-in ACME support is enough or whether an external ACME client is needed. Apache's mod_md and OpenLiteSpeed's built-in ACME cover some cases, while nginx and Tomcat rely on different mechanisms, and Tomcat's documented approach uses an external renewal process with a reload listener. Record the decision and its reason beside each server. The step is done when every server has one chosen renewal method and the people responsible for it are named. Keep the list short enough that your team can operate each method it adopts.

  5. Test renewal and reload in a staging environment

    Before any production change, run each chosen renewal method against a staging copy of the server with the same names and configuration. Force a renewal, then confirm the new certificate is served after the reload or restart the method requires. Check that existing connections are handled as expected: nginx reloads by signalling its master process and rolls back if the new configuration fails, while Apache's mod_md makes a renewed certificate active on the next restart or reload. Record the output of each test and the observed behavior. The step is done when every method has one successful renewal and one reload recorded in staging, with any failure documented and fixed.

  6. Confirm the renewal schedule works for shorter lifetimes

    Let's Encrypt's published timeline moves its default certificates to 64 days and then to 45 days, and it advises that a client without ARI support use a schedule that works for 45-day certificates. Confirm that each server's renewal trigger works without relying on a fixed 60-day interval. Check the threshold each client uses, since Certbot 4.0.0 renews when less than one third of the lifetime remains. The step is done when each server's schedule has been reviewed against the shorter lifetimes and the owner has written down which trigger applies.

  7. Set alerts for failed and missed renewals

    Let's Encrypt recommends monitoring that alerts you if certificates are not renewed when expected, and it does not recommend manual renewal as a substitute. Configure alerting for each server using the hooks or events its method provides, such as Apache's MDMessageCmd for renewed and errored events or Certbot's post-renewal hooks. Also alert on the certificate expiry date itself, independent of the renewal process, so a silent failure still produces a warning. The step is done when a deliberately failed renewal in staging triggers an alert that reaches the named owner.

  8. Record the chosen setup and review it on a fixed cycle

    Write down the final setup for each server: the software version, the challenge type, the renewal method, the reload behavior, the monitoring and the owner. Store this record with the inventory so that it stays current. Schedule a review each time a server is upgraded or a certificate authority changes its lifetime or features. The step is done when the record is complete for every server in scope and has been approved by the people who run them.

Documented limits to confirm before relying on each option

Each server handles automation differently, and several of the documented limits can rule an option out before any configuration starts. nginx's native ACME module, ngx_http_acme_module, does not support wildcard or regular expression server_name identifiers, so a site that depends on a wildcard name needs a different approach or a separate issuance path. Apache's mod_md is marked Experimental in the Apache documentation, which means teams that want a supported option for production should weigh that label against their change-control rules. Caddy's DNS challenge requires a custom build that includes a caddy-dns provider plugin, so a standard binary cannot use it until the build is changed. OpenLiteSpeed supports wildcard certificates only through a DNS provider API, which adds a dependency on that API and its credentials.

Caddy's renewal_window_ratio, which defaults to 0.3333, is only a suggestion when ACME issuers use ARI. Teams that tune this value to control when renewals happen should confirm which issuers they use and whether those issuers support ARI, because the ratio may not set the actual renewal time. Traefik's ACME reference page does not mention ARI, so the same check applies to it.

Version support and rate limits change between releases and between certificate authorities, so confirm both in each vendor's documentation before committing to a design. Check which versions of each server include the ACME module or plugin you need, and check the issuer's current rate limits against your planned renewal volume, especially as certificate lifetimes shorten. Test the chosen configuration against a staging issuer where one is available.

Questions readers ask when choosing a web server certificate setup

Is a built-in ACME feature enough to handle certificate renewal on my web server?

It can be, for many setups, but only if the feature covers the challenge types, identifiers and reload behavior you need. nginx has a native ACME module that implements RFC 8555 with the http-01 challenge by default and tls-alpn-01 as an option. Apache's mod_md is marked Experimental and supports http-01, tls-alpn-01 and dns-01. Caddy's Automatic HTTPS handles http and tls-alpn challenges by default, and DNS challenges need a custom build with a DNS provider plugin. Check whether the built-in feature fits your challenge method, your identifiers and your monitoring needs before relying on it alone.

Should I run more than one certificate approach on the same platform?

Running several approaches on one platform adds places to look when a renewal fails, so most teams benefit from picking one method per platform and documenting it. The facts do not establish a general recommendation either way. If you do mix approaches, for example a built-in feature on one server and an external ACME client on another, record which process renews each certificate, where its files live and who gets alerted when renewal fails. Confirm each approach against the documentation for the versions you run.

Which web servers support wildcard certificates?

Support differs by server, and the facts only cover some of them. nginx's ACME module does not support wildcard or regular expression server_name identifiers. OpenLiteSpeed supports wildcards only through a DNS provider API. Caddy's DNS challenge requires a custom build with a caddy-dns provider plugin. Traefik's ACME resolver supports the dnsChallenge option, which is the route wildcard issuance generally takes under ACME. For Apache's mod_md, confirm wildcard handling in its documentation for your version, since the facts do not state it.

What does the 45-day certificate lifetime mean for my web server?

Let's Encrypt's published timeline sets a 45-day lifetime for the opt-in tlsserver profile from 13 May 2026, and for the classic profile from 16 February 2028. The CA/Browser Forum's Baseline Requirements set a 47-day maximum subscriber validity from 15 March 2029, with 200 days from 15 March 2026 and 100 days from 15 March 2027 before that. Let's Encrypt advises using ACME Renewal Information where the client supports it, and otherwise a schedule that works for 45-day certificates. A fixed 60-day renewal interval will no longer be sufficient. Confirm how your server reloads after renewal, since a renewed certificate may only become active on the next restart or reload.

Is ACME Renewal Information (ARI) supported on each web server?

The facts document ARI for some servers and not others. nginx's ACME module lists RFC 9773 ARI as implemented in the project README. Apache's mod_md has MDRenewViaARI on by default. Caddy's renewal_window_ratio is only a suggestion when ACME issuers use ARI. Traefik's ACME reference page does not mention ARI. The sources do not say whether OpenLiteSpeed or Node.js-based setups use ARI, so check each product's documentation for the version you run. RFC 9773 is published as the standard for the extension, so the client must still implement it.

What should I check first when setting up certificate renewal on a web server?

Start by listing every certificate the server holds, its identifiers and the challenge method that will issue it. Then confirm that the port or DNS access the challenge needs is open, and check that the renewal process reloads the server without dropping connections. nginx reloads by HUP to the master process, which rolls back to the old configuration if a new one fails. Set up alerts for failed renewals, since Let's Encrypt recommends monitoring that flags certificates not renewed when expected. Finally, test a renewal on a staging name before the first real expiry date.

Can my team handle this setup without outside help?

Many teams can, particularly where one web server is involved and the built-in or single-client approach covers their identifiers and challenge types. The work is mostly inventory, configuration, reload testing and monitoring. Support becomes more useful when several platforms, wildcards or DNS providers are involved, or when renewal has to fit an audit trail. DeployOpen plans, implements and documents these setups in the client's own infrastructure, under a written, fixed scope agreed before work starts. It does not issue audit reports or certifications.

How DeployOpen helps plan and run web server certificate automation

DeployOpen plans and runs web server certificate automation inside your own infrastructure, so the setup fits your nginx, Apache, Caddy or other web servers and your renewal process. We start with a written scope, build and test the renewal path, and hand over documentation your team can operate.

How we scope

  • We inventory which web servers, virtual hosts and domains need certificates and how each one renews today.
  • We agree a fixed scope in writing, covering the servers, deliverables and timelines included in the engagement.
  • We identify which servers support ACME Renewal Information and which need a fixed renewal schedule for 47-day certificates.

How we build

  • We configure the ACME client or built-in ACME support on each web server, using the challenge types your network allows.
  • We set up reloads so renewed certificates take effect safely, checking the configuration behaves as the server documents.
  • We test failed-renewal behavior and monitoring alerts so a stalled renewal is caught before a certificate expires.

How we hand over

  • We document each server's issuance, renewal, reload and failure-handling setup, with the commands and config keys used.
  • We walk your platform and security engineers through the monitoring, alert paths and the steps to follow when renewal fails.
  • We deliver a written record of what was tested, what remains open and which product documentation to check for version-specific settings.

How we support

  • Engagements are fixed-scope, and ongoing support, upgrades and continuous testing are available as a retainer.
  • Retainers can cover reviewing renewal behavior as server versions change and as certificate lifetimes shorten further.
  • Ask any quote to state what is one-time work, what recurs under a retainer and what your team keeps operating itself.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.