Skip to content
Contents
GuidesOpenWrt

Will OpenWrt renew your public TLS certificate in time as lifetimes shrink?

Check the expiry date at the address people use. A proxy can still serve the old certificate after the router has written a new file. A successful scheduled job alone cannot tell you which certificate reached the browser.

Check the expiry date at the address people use. A proxy can still serve the old certificate after the router has written a new file. A successful scheduled job alone cannot tell you which certificate reached the browser.

Which certificates are affected?

Section 6.3.2 of the CA/Browser Forum public TLS requirements sets ceilings by date of issuance. From 15 March 2026 the maximum is 200 days, from 15 March 2027 it is 100 days and from 15 March 2029 it is 47 days. A CA may issue shorter certificates. Existing expiry dates stay unchanged. Domain validation reuse has its own limits. Check separate policies for private CAs, self-signed LuCI certificates and VPN client credentials.

Compare the live certificate with the file on disk

On a trusted computer with the correct time, use Bash in a fresh temporary directory. Replace both hostnames with your actual endpoint. Supply the appropriate trusted CA file if necessary. Stop on connection or verification failure. The pipeline saves only the public leaf certificate.

(
set -o pipefail
openssl s_client -connect home.example.org:443 -servername home.example.org -verify_hostname home.example.org -verify_return_error </dev/null | openssl x509 -out served.pem &&
openssl x509 -in served.pem -noout -dates -fingerprint -sha256 &&
openssl x509 -in served.pem -noout -checkend 1209600
rc=$?
echo "$rc"
exit "$rc"
)

A zero exit status from the final check means more than 14 days remain. For a nonzero result distinguish imminent expiry from a parsing error. Compare the SHA-256 fingerprint with the public leaf file loaded by the service. In a local loopback test, a process retaining its TLS context kept serving the old fingerprint until reload. Check CDN edges and origins separately.

OpenWrt 25.12.6 · SSH · SHA-256 · 1

In an isolated OpenWrt 25.12.6 VM, local port 8443 forwards to uHTTPd on 443. The file read over SSH and the served certificate have different fingerprints. The old certificate expires within 14 days, so the check exits with 1.

OpenWrt 25.12.6 · SSH · SHA-256 · 0

After restarting uHTTPd in this VM the fingerprints match and the check exits with 0. We trusted temporary test certificates locally and made no public CA request. Use the reload procedure for your own TLS service.

Leave time for retries

A check every 30 days can miss a 14-day renewal window. Inspect the ACME client's next check, last issuance, deployment and external probe. Follow its renewal guidance and allow time for DNS propagation and manual recovery. Frequent checks need not request a certificate each time. Test the challenge in staging. Verify the production name, chain and new expiry externally. If deployment fails, restore the previous certificate and matching key only if still valid and uncompromised. Reload and keep the alert active.

What does an OpenWrt configuration backup restore?

Explore hardware

Comments