Renewal
Certificates issued by a certificate source are renewed automatically before they expire; certificates uploaded manually are not renewed, but reminders are sent before they expire, until a source is chosen in their renewal settings.
When certificates are renewed
| Rule | Description |
|---|---|
| Renewal window | A certificate enters its renewal window a number of days before it expires, 30 by default; the default is set under Renewal defaults on the Settings page, and each certificate can have its own under Renewal settings on its page |
| Daily check time | Within the window, renewal starts at the daily check time, 02:00 by default, in the panel's time zone |
| Urgent renewal | With seven days or fewer left, renewal starts at once, without waiting for the check time |
| Short-lived certificates | The window is at most two thirds of the certificate's life, and urgency at most one third: a six-day certificate enters its window two days after it was issued, rather than as it comes |
| CA advice | When the certificate authority advises an earlier renewal through ACME Renewal Information (ARI, RFC 9773), for example before a revocation, renewal starts at the advised time |
| Revoked | When the certificate authority has revoked the current certificate, renewal starts at once; see below |
| Renew now | Asked first; when the certificate was issued three times or more in the last seven days, the question says so, as CAs limit how often the same domains are issued (Let's Encrypt to five a week) |
The certificate list and each certificate's page show the next renewal. The panel's time zone is chosen under Appearance on the Settings page, and follows the server's (the TZ environment variable) by default.
Private keys
Each renewal makes a new private key by default. Where an app pins the public key, or a TLSA record (DANE) publishes it, turn on Keep the private key on renewal under Renewal settings on the certificate's page: new certificates keep the key in use, so the public key stays. A revoked certificate still gets a new key. Sources with keys of their own, such as a certificate directory on this machine, do not take the setting.
Failures and retries
- Failed issuances and deployments are retried with exponential backoff: the delay starts at ten minutes and doubles up to twelve hours; when a source asks for a wait (
Retry-After), it is honored, up to 24 hours. - The number of retries is set under Renewal defaults on the Settings page: 7 by default, from 0 to 20.
- Errors that retries cannot fix, such as a missing EAB or a refusal by the certificate authority, are not retried, unless the certificate has a backup source to try next.
- After an issuance fails for good, renewal pauses for 24 hours before the next attempt; an issuance can be started by hand at any time on the certificate's page.
- Operations that cost money or cannot be undone, such as purchases, renewals of orders and revocations, are never retried automatically.
Revocation checks
Certificate authorities revoke certificates over mistakes in issuance, leaked keys and the like, often at a day's notice. Every 12 hours, JEC asks whether the current version of each certificate was revoked, through OCSP or the certificate revocation list (CRL):
- A revoked certificate shows as Revoked, and a note goes out (the notification event for certificates the CA revoked, on by default).
- A certificate with a source is issued again at once, and the new one is deployed as usual; an uploaded one needs a new version uploaded soon.
- The certificate's versions show when it was revoked and why.
The check needs the issuer's certificate with the current version (its chain), and a certificate that names neither an OCSP responder nor a CRL is not checked.
Expiry reminders
A reminder is sent when a certificate enters its renewal window, when seven days are left and when it has expired, once each (the notification event for certificates that are expiring or expired). Certificates uploaded manually receive them as well.
Online checks
The online check module connects to port 443 of each domain as a browser does, or to other ports set (see below), and verifies the certificate actually served:
- every six hours, and two minutes after each deployment;
- if the old certificate is still served 30 minutes after the current version took effect, for example because a CDN has not applied it, a notification is sent;
- likewise if the current version is served without its intermediates, as when only the certificate was deployed and not the full chain. Browsers on computers fetch the intermediates themselves; many apps, Android devices and curl fail. JEC tells of it only when the chain verifies once the issuers its certificates name (AIA) are fetched, so a private CA's certificate raises nothing;
- the Online check section of the certificate's page shows the result for each domain, with the TLS version spoken, and can run a check at once; it also tells, without a notification, of a server that still takes TLS 1.0 or 1.1, which browsers dropped.
A certificate deployed to a mail server or another service than a website can be checked on its ports instead: Online check settings, at the bottom of the Online check section, take them separated by commas, such as 993, 465. 993 (IMAP), 995 (POP3) and 465 (SMTP) speak TLS at once; 25 and 587 are checked through SMTP's STARTTLS. Results for another port than 443 show as domain:port.
The same settings turn the check off domain by domain, as for a name used only within a network, which cannot be reached from outside: such a domain is no longer connected to and tells of nothing, and the bottom of the Online check section lists it as not checked; new versions keep the setting. With every domain off, the section says so, and the same settings turn them on again. Wildcards cannot be connected to, and are never checked.
Where the DNS of a domain answers by region, sending visitors from mainland China to Alibaba Cloud ESA and others to Cloudflare, say, JEC connects as each of them would and shows the two results apart, as one line when both sides serve the same certificate. A certificate from another CA, such as a CDN's own, shows as not deployed by JEC, without an alert; only an older certificate from the same CA raises one.