Some ACME views on the OpenWrt 24.10 branch display a file modification date. Before requesting another certificate, compare the file on disk with the certificate a client receives.
Find the HTTPS endpoint
If a reverse proxy terminates TLS, start there. Use a shell with OpenSSL. For the usual uHTTPd instance, run this over SSH on the router to locate the certificate. For other instances or servers, check the site configuration. Read only the public certificate. Never copy the private key.
uci -q get uhttpd.main.cert
Replace the path, host and port. On a workstation use a copy of the public certificate. The site certificate must come first in a chain file. The second query sends the server name to select the correct virtual host.
cert=./leaf.pem
host=router.example.org
port=443
openssl x509 -in "$cert" -noout -dates -fingerprint -sha256
openssl s_client -connect "$host:$port" -servername "$host" </dev/null |
openssl x509 -noout -dates -fingerprint -sha256
Compare notAfter and the entire SHA-256 fingerprint
notBefore and notAfter bound the validity period. Use the displayed time zone when comparing with an older record. Without a baseline you can identify the current certificate but cannot date the renewal. If no certificate is read, check the format, host and port.

- Same fingerprint and later expiry. This endpoint serves the intended certificate. Leave the renewal alone even if the list date is unchanged.
- New file, different live fingerprint. Check the site binding, symlink and TLS endpoint. A CDN may use its own certificate. If the service still loads the old file, keep the previous configuration, validate the change and reload that service.
- Both copies are old. Check the domain and output directory in the last successful ACME log entry. Distinguish a renewal that is not due from failed validation or output written elsewhere.
Reconnect from the user network and verify the hostname, trust chain and expiry in a browser. Check each node. If loading fails, restore the last working configuration and matching certificate deployment, then reload. Resolve any expiry without disabling verification.
Set up a wildcard certificate for internal services on a separate reverse proxy
Comments