Why certificates seem to expire "out of nowhere"
An SSL/TLS certificate is the identity document behind the encrypted connection between your domain and your server. Every certificate has a validity period, and when it ends browsers show a full-page warning instead of your site. To a visitor, that warning reads as "this site has been hacked". The expiry itself is never sudden; the problem is that nobody wrote the date down.
Validity periods are short today. Free certificates typically last 90 days, commercial ones about a year at most, and the industry is moving toward even shorter lifetimes. Renewing by hand is becoming unsustainable, which is exactly why a small amount of structure pays off.
Three ways to check a certificate
All three show the same data; they are useful in different situations.
In the browser
Click the padlock in the address bar, then follow "Connection is secure" and "Certificate is valid". You will see who the certificate was issued to, the hostnames it covers (the SAN list) and the expiry date. This is fine for a quick look at a single site.
From the command line
Running openssl s_client -connect example.com:443 -servername example.com prints the certificate chain the server actually serves. The notAfter field is the expiry date. The advantage is that you see what the server sends, independent of any browser cache.
With an online checker
Enter a hostname in the SSL check tool and you get the subject, the issuing authority, the days remaining and whether the chain is complete, all on one screen. If you manage several domains or do not have shell access to the server, this is the most practical route.
Look beyond the date: five common mistakes
- Missing intermediate certificate: the certificate is valid but the chain is incomplete. Some browsers and mobile apps fail, others silently fix it. "It works on my machine" is therefore not a reliable test.
- Hostname mismatch: the certificate covers
example.com, butwww.example.comis not in the SAN list. - Renewed but not loaded: the automatic renewal produced a new file, but the web server was never reloaded and keeps serving the old certificate.
- Forgotten subdomains: the main site was renewed while
api.ormail.still uses an old certificate. - Other ports: port 443 is current, but the mail server on ports 465 and 993 still presents a certificate from years ago.
A routine that prevents expiry
- Automate renewal. ACME-based clients renew a certificate roughly 30 days before it expires. Keep manual renewal only for the rare cases where automation is impossible.
- Reload after renewal. The renewal job must be followed by a step that reloads the web server and, if you run one, the mail server. Otherwise the new file sits on disk while the old certificate is served.
- Monitor from the outside. Even if the server reports a successful renewal, an external check sees the real expiry date. A weekly check prevents most surprises.
- Set a threshold. Get notified when fewer than 14 days remain. With 90-day certificates, that means automation has failed twice and there is still time to intervene.
- Keep an inventory. Which domain, which server, which renewal method? Even a three-line table works. When something breaks, this is the first place to look.
Why this matters for short links and QR codes
If you have printed a QR code on a brochure, the domain behind it must keep working for as long as the brochure exists. When that certificate expires, the phone opens the link, the browser shows a warning, and the visitor does not try a second time. You cannot reprint the brochure; every lost scan is a lost customer. Domains that "just sit in the background", such as a branded short-link domain, are the easiest to forget, so put them in the inventory too.
Conclusion
An expired certificate is not a technical failure; it is a tracking failure. Automated renewal, a reload step after renewal and regular external checks remove the problem almost entirely. A good first step today is to run each of your domains through the SSL check tool and note the days remaining; your first inventory will be ready in ten minutes.