Skip to content
Search/
CyberMax › Answers

How to check when your domain and SSL certificate expire (and get warned in time)

Updated 2026-11-10 · Small business, landlords and freelancers · by CyberMax

Short answer

The domain's expiry date is in its registry record: look it up over RDAP (the successor to WHOIS), e.g. rdap.org/domain/example.com, and read the 'expiration' event. The certificate's end date is in the certificate the server presents: openssl s_client -connect example.com:443 -servername example.com | openssl x509 -noout -enddate. Then put both dates in a calendar or a monitor that re-reads them daily, because auto-renewal fails quietly.

  1. Look up the registration expiry over RDAP.
  2. Read the served certificate's notAfter date and check it covers the name.
  3. Set alerts at 30, 7 and 1 day before.
  4. Re-check daily: renewals can fail silently.

Copy-paste code

Read both dates from a terminal

# Domain registration expiry (RDAP, JSON)
curl -s https://rdap.org/domain/example.com | grep -o '"eventAction":"expiration","eventDate":"[^"]*'

# Certificate end date (the one the server presents)
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null \
  | openssl x509 -noout -enddate -ext subjectAltName

Good to know

Some country-code registries (for example .de) do not publish an expiry date over RDAP.

Let's Encrypt certificates last 90 days or less, so 'set a reminder once' does not work for them.

Lapsemoor icon

Lapsemoor: Domain and SSL expiry alerts before anything lapses

from $1.99/month

Lapsemoor reads both dates every day for a list of domains and messages you before either lapses, in Telegram, your browser or a feed, with a renewal calendar. Free for 10 domains; Pro $6 a month for 100.

Secure checkout · 14-day fix-or-refund if it doesn't work as described (terms)

Questions

Is WHOIS still used?

RDAP replaced WHOIS for generic TLDs; it returns structured JSON with the same dates.

Does a renewed certificate fix itself?

Only if the new certificate is installed: check the date the server presents, not just your CA account.

Free: the Small Business Starter Kit

Bookkeeping and profit previews plus free invoice, rent receipt, margin and HACCP/allergen tools, then 5 short emails on margins, invoicing and checklists.

You get one email to confirm first. Then the kit, and 5 short emails over two weeks. One-click unsubscribe in every email; we never share your address.