How to Track Domain and SSL Certificate Expiry Dates in Google Sheets with Renewal Reminders (2026)
An expired SSL/TLS certificate puts a full-page security warning in front of every visitor, and an expired domain can take the website and the email on it down with it. Registrars and certificate authorities do send notices, but they go to whatever address was used at signup, often a former employee's or a client's, and Let's Encrypt stopped sending expiration emails on June 4, 2025. If you look after more than a handful of domains and certificates, for your own business or for clients, one sheet with every expiry date plus a daily reminder script is a simple safety net. This guide builds that sheet, adds formulas that show what is coming up, and gives you a free Apps Script that emails each owner one list of what to renew, with an optional step that reads domain expiry dates from the public registry data.
Why this matters more in 2026. Under CA/Browser Forum ballot SC-081v3, publicly trusted certificates issued from March 15, 2026 can last at most 200 days, from March 15, 2027 at most 100 days, and from March 15, 2029 at most 47 days (see the schedule as explained by SSL.com). A certificate you used to renew once a year now needs renewing about twice a year, then about every three months. Where you can, automate certificate renewal (ACME clients, your host's or CDN's managed certificates). The sheet is for the ones that are still renewed by hand, for domains, and for checking that automation really worked.
Step 1: a Renewals tab with one row per domain or certificate
Name the tab Renewals. The script finds columns by their header, so the order is up to you, but the formulas below assume A to H:
| Col | Header | What goes in it |
|---|---|---|
| A | Name | The domain (example.com) or the certificate's main host name (shop.example.com, *.example.com) |
| B | Type | Domain or Certificate (anything containing “cert”, “SSL” or “TLS” counts). Anything else, like a hosting plan, uses the Other reminder schedule. |
| C | Provider | Registrar or certificate authority, and where it is installed if that helps (“CA, load balancer”) |
| D | Expires | The expiry date (how to find it is below) |
| E | Auto-renew | Yes or No (a checkbox works too) |
| F | Owner | Email of whoever renews it. Blank = the script owner, or DEFAULT_TO. |
| G | Status | Blank while you keep it. Let lapse, Retired, Transferred out, Replaced, Not renewing or Cancelled stop the reminders. |
| H | Sent log | Leave empty; the script records what it sent |
Optional: a column headed Checked for the domain lookup in Step 4, and a helper column Days left filled down from row 2: =IF(D2="","",D2-TODAY()). Format Expires as a date (Format › Number › Date) and give Type, Auto-renew and Status Data › Data validation dropdowns so the values are spelled the way the script expects. A multi-domain or wildcard certificate is one row: put its main name in Name and list the other names in Provider or a Notes column.
Where to find the dates.
- Domains: your registrar's dashboard, or the public registration data at ICANN Lookup (look for the expiry date in the events). Step 4 can fill these in for you.
- Certificates: click the padlock or site settings icon in your browser and open the certificate details (“Expires on” or “Not after”), or check from a terminal:
echo | openssl s_client -connect example.com:443 -servername example.com 2>/dev/null | openssl x509 -noout -enddate. Your certificate authority's account page lists them too.
Sanity check for certificate dates. If you also record the issue date (say in column J), this gives the latest expiry a public certificate issued that day can have under the schedule above: =IF(J2="","",J2+IF(J2>=DATE(2029,3,15),47,IF(J2>=DATE(2027,3,15),100,IF(J2>=DATE(2026,3,15),200,398)))). An Expires date later than that was probably typed wrong. Certificates from your own private certificate authority are not covered by these limits.
Step 2: see what is coming up
Select A2:I, open Format › Conditional formatting, choose Custom formula is, and add these rules in this order:
| Custom formula | Color | Meaning |
|---|---|---|
=REGEXMATCH(LOWER($G2),"^(let lapse|lapsed|retired|cancelled|canceled|transferred out|not renewing|replaced)$") | Grey text | Not renewing, no reminders |
=AND(ISNUMBER($D2),$D2<TODAY()) | Red | Expired |
=AND(ISNUMBER($D2),$D2>=TODAY(),$D2<=TODAY()+30) | Amber | Expires in the next 30 days |
Everything due in the next 90 days, soonest first, on a summary tab:
=SORT(FILTER(Renewals!A2:F, ISNUMBER(Renewals!D2:D), Renewals!D2:D<=TODAY()+90, NOT(REGEXMATCH(LOWER(Renewals!G2:G), "^(let lapse|lapsed|retired|cancelled|canceled|transferred out|not renewing|replaced)$"))), 4, TRUE)
How many manual renewals (Auto-renew typed as No) fall in the next 60 days:
=COUNTIFS(Renewals!E2:E, "No", Renewals!D2:D, ">="&TODAY(), Renewals!D2:D, "<="&TODAY()+60)
And a renewal calendar, a count per month, so you can see busy months coming:
=QUERY(Renewals!A2:D, "select year(D), month(D)+1, count(A) where D is not null and D >= date '" & TEXT(TODAY(),"yyyy-mm-dd") & "' group by year(D), month(D)+1" & " label year(D) 'Year', month(D)+1 'Month', count(A) 'Renewals'", 0)
Step 3: email reminders before the expiry date
Google Sheets doesn't send email when a date arrives; its notification rules react to edits, not to the calendar. A short Apps Script with a daily trigger does it. Open Extensions › Apps Script, paste this and save. Then:
- Run
sendRenewalRemindersonce and approve the permissions.PREVIEWistrue, so every email goes to you, with the real recipient in the subject, and nothing is logged. - Read the preview emails. When they look right, set
PREVIEW = falseand save. - Add the trigger: Triggers › Add trigger › sendRenewalReminders › Time-driven › Day timer, for example 8 to 9 AM.
/**
* Renewal reminders from a "Renewals" tab: one row per domain name or
* SSL/TLS certificate (or any other thing that expires, like hosting).
* Headers used (any order): Name, Type, Provider, Expires, Auto-renew,
* Owner, Status, Sent log, Checked. Only Name, Expires and Sent log are required.
* Each owner gets one email per run listing what is coming up or overdue.
* Renewed? Type the new expiry date: the reminders start over for it.
* Optional: updateDomainExpiry() reads domain expiry dates from RDAP.
*/
const SHEET_NAME = 'Renewals';
const REMIND_DAYS = { // days before the Expires date, by Type
Domain: [60, 30, 14, 7, 1],
Certificate: [30, 14, 7, 1],
Other: [30, 7, 1],
};
const AUTO_RENEW_DAYS = [7]; // rows with Auto-renew = Yes: one "check it renewed" note
const EXPIRED_DAYS = [1, 7]; // days after the date, until the row is updated or stopped
const DEFAULT_TO = ''; // used when Owner is blank; blank = you
const STOP_STATUS = /^(let lapse|lapsed|retired|cancelled|canceled|transferred out|not renewing|replaced)$/i;
const PREVIEW = true; // true: everything goes to you, nothing is logged
const MAX_EMAILS = 50; // safety cap per run (one email per owner)
const MAX_LOOKUPS = 40; // RDAP lookups per run of updateDomainExpiry
const SUBJECT = 'Renewals due: {{Count}} ({{Expired}} expired)';
const INTRO = 'Hi,\n\nThese domains and certificates expire soon or have expired:';
const OUTRO = 'After renewing, type the new expiry date in the sheet and the reminders for this one stop. If you are letting it go, set Status to Let lapse.';
const typeOf_ = (t) => /domain/i.test(t) ? 'Domain' : /cert|ssl|tls/i.test(t) ? 'Certificate' : 'Other';
const isAuto_ = (v) => v === true || /^(yes|y|true|on|auto)$/i.test(String(v).trim());
function sendRenewalReminders(now) {
const lock = LockService.getDocumentLock();
if (!lock.tryLock(30000)) return; // another run is still going
try {
// A time-driven trigger passes an event object, so only use a real Date.
return remind_(now instanceof Date ? new Date(now) : new Date());
} finally {
lock.releaseLock();
}
}
function columns_(head) {
const col = (name) => head.indexOf(name);
return { name: col('Name'), type: col('Type'), prov: col('Provider'), exp: col('Expires'),
auto: col('Auto-renew'), to: col('Owner'), status: col('Status'), log: col('Sent log'),
checked: col('Checked') };
}
function remind_(now) {
const ss = SpreadsheetApp.getActive();
const sh = ss.getSheetByName(SHEET_NAME);
if (!sh) throw new Error(`No tab named ${SHEET_NAME}.`);
const rows = sh.getDataRange().getValues();
const c = columns_(rows[0].map((h) => String(h).trim()));
if ([c.name, c.exp, c.log].includes(-1)) throw new Error('Need Name, Expires and Sent log columns.');
// Count days in the spreadsheet's own time zone (File > Settings).
const tz = ss.getSpreadsheetTimeZone();
const ymd = (d) => Utilities.formatDate(d, tz, 'yyyy-MM-dd');
const dayNum = (d) => Date.UTC(...ymd(d).split('-').map((x, i) => +x - (i === 1 ? 1 : 0))) / 86400000;
const today = dayNum(now);
const isDate = (v) => v instanceof Date && !isNaN(v);
const EMAIL = /^[^\s@,;]+@[^\s@,;]+\.[^\s@,;]+$/;
const me = Session.getEffectiveUser().getEmail();
const byOwner = {};
let badEmail = 0;
for (let r = 1; r < rows.length; r++) {
const row = rows[r];
const text = (i) => (i === -1 ? '' : String(row[i]).trim());
if (STOP_STATUS.test(text(c.status))) continue;
const exp = row[c.exp];
if (!isDate(exp) || text(c.name) === '') continue;
const type = typeOf_(text(c.type));
const auto = c.auto !== -1 && isAuto_(row[c.auto]);
const left = dayNum(exp) - today; // negative = expired
// 30 = 30 days before, -7 = 7 days after the date.
const steps = (auto ? AUTO_RENEW_DAYS : (REMIND_DAYS[type] || REMIND_DAYS.Other))
.concat(EXPIRED_DAYS.map((n) => -n));
// The one step that fits today: no pile of earlier ones after a gap.
const hit = steps.filter((s) => left <= s && (left >= 0 || s < 0)).sort((a, b) => a - b)[0];
if (hit === undefined) continue;
const sent = String(row[c.log] || '').split(';').filter(String);
// Keyed to the expiry date: a new date (renewed, or corrected) starts over.
const key = `E${ymd(exp)}@${hit}`;
if (sent.includes(key)) continue;
const to = (text(c.to) || DEFAULT_TO || me).toLowerCase();
if (!EMAIL.test(to)) { badEmail++; console.log(`Row ${r + 1}: check the Owner email`); continue; }
const when = left > 1 ? `expires in ${left} days` : left === 1 ? 'expires tomorrow' :
left === 0 ? 'expires today' : left === -1 ? 'EXPIRED yesterday' : `EXPIRED ${-left} days ago`;
const label = text(c.type) || type;
const extra = [label, text(c.prov), auto ? 'auto-renew: check it went through' : ''].filter(String).join(', ');
(byOwner[to] = byOwner[to] || []).push({
r: r + 1, left,
line: `- ${text(c.name)} (${extra}): ${Utilities.formatDate(exp, tz, 'EEE, MMM d, yyyy')} (${when})`,
log: sent.concat(key).slice(-12).join(';'),
});
}
// Owners with the most urgent item first, in case the quota runs out.
const groups = Object.keys(byOwner).map((to) => {
const items = byOwner[to].sort((a, b) => a.left - b.left || a.r - b.r);
return { to, items, worst: items[0].left };
}).sort((a, b) => a.worst - b.worst);
let sent = 0;
for (const g of groups) {
if (sent >= MAX_EMAILS || MailApp.getRemainingDailyQuota() < 1) break;
const expired = g.items.filter((i) => i.left < 0).length;
const subject = SUBJECT.replace('{{Count}}', g.items.length + (g.items.length === 1 ? ' item' : ' items'))
.replace('{{Expired}}', expired);
const body = [INTRO, '', ...g.items.map((i) => i.line), '', OUTRO, '', `Sheet: ${ss.getUrl()}`].join('\n');
MailApp.sendEmail({
to: PREVIEW ? me : g.to,
subject: PREVIEW ? `[PREVIEW to ${g.to}] ${subject}` : subject,
body,
});
sent++;
if (!PREVIEW) {
// Log right after each email, so a crash can't cause a repeat.
g.items.forEach((i) => sh.getRange(i.r, c.log + 1).setValue(i.log));
SpreadsheetApp.flush();
}
}
const result = { sent, left: groups.length - sent, badEmail, preview: PREVIEW };
console.log(JSON.stringify(result));
return result;
}
/**
* Optional: fill Expires for Type = Domain rows from public RDAP data
* (the successor to WHOIS), via the rdap.org redirect service.
* Writes only when the registry's date differs from the sheet, and notes
* the result in a "Checked" column if you have one. Some country-code
* domains have no RDAP or don't publish an expiry date: those stay as typed.
*/
function updateDomainExpiry(now) {
const lock = LockService.getDocumentLock();
if (!lock.tryLock(30000)) return;
try {
const ss = SpreadsheetApp.getActive();
const sh = ss.getSheetByName(SHEET_NAME);
if (!sh) throw new Error(`No tab named ${SHEET_NAME}.`);
const rows = sh.getDataRange().getValues();
const c = columns_(rows[0].map((h) => String(h).trim()));
if ([c.name, c.type, c.exp].includes(-1)) throw new Error('Need Name, Type and Expires columns.');
const tz = ss.getSpreadsheetTimeZone();
const stamp = Utilities.formatDate(now instanceof Date ? now : new Date(), tz, 'yyyy-MM-dd');
const DOMAIN = /^(?=.{1,253}$)([a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+(?:[a-z]{2,63}|xn--[a-z0-9-]{1,59})$/;
const res = { updated: 0, same: 0, notFound: 0, skipped: 0 };
let lookups = 0;
for (let r = 1; r < rows.length; r++) {
const row = rows[r];
const name = String(row[c.name]).trim().toLowerCase().replace(/^https?:\/\//, '').replace(/^www\./, '').replace(/\/.*$/, '');
if (typeOf_(String(row[c.type])) !== 'Domain' ||
(c.status !== -1 && STOP_STATUS.test(String(row[c.status]).trim()))) continue;
if (!DOMAIN.test(name)) { res.skipped++; continue; }
if (lookups >= MAX_LOOKUPS) break; // the rest go on the next run
if (lookups++) Utilities.sleep(1000); // be polite to the RDAP servers
let iso = '';
try {
const resp = UrlFetchApp.fetch('https://rdap.org/domain/' + encodeURIComponent(name),
{ muteHttpExceptions: true, headers: { Accept: 'application/rdap+json' } });
if (resp.getResponseCode() === 200) {
const ev = (JSON.parse(resp.getContentText()).events || [])
.find((e) => e.eventAction === 'expiration' && e.eventDate);
if (ev) iso = String(ev.eventDate).slice(0, 10); // the registry's date (UTC)
}
} catch (e) {
console.log(`Row ${r + 1}: ${e.message}`);
}
const note = (t) => { if (c.checked !== -1) sh.getRange(r + 1, c.checked + 1).setValue(`${stamp} ${t}`); };
if (!/^\d{4}-\d{2}-\d{2}$/.test(iso)) { res.notFound++; note('no expiry date in RDAP, check the registrar'); continue; }
const cur = row[c.exp];
if (cur instanceof Date && !isNaN(cur) && Utilities.formatDate(cur, tz, 'yyyy-MM-dd') === iso) {
res.same++; note('RDAP matches'); continue;
}
// Written as text in ISO form, which Sheets reads as a date in any locale.
sh.getRange(r + 1, c.exp + 1).setValue(iso);
res.updated++; note('Expires updated from RDAP');
}
SpreadsheetApp.flush();
console.log(JSON.stringify(res));
return res;
} finally {
lock.releaseLock();
}
}
How it behaves:
- One email per owner. Each run, everyone with something new gets a single list, most urgent first: “shop.example.com (Certificate, CA name): Mon, Nov 30, 2026 (expires in 14 days)”. The owner with the most urgent item is emailed first.
- Different lead times by type. Domains get reminders 60, 30, 14, 7 and 1 days before, certificates 30, 14, 7 and 1, anything else 30, 7 and 1. Change
REMIND_DAYSto suit; a certificate that needs paperwork or a change window might start at 45 days. - Auto-renew gets one check. Rows with Auto-renew = Yes get a single note 7 days before (
AUTO_RENEW_DAYS) saying to check the renewal went through: an expired payment card or a broken validation is the usual reason auto-renew fails. - After the date. If nothing changes, a reminder goes 1 and 7 days after expiry (
EXPIRED_DAYS), then the script goes quiet. Many registrars allow a grace period after a domain expires, but its length and the cost of getting a domain back vary by registrar and extension, so don't count on it. - Renewed? Type the new date. The Sent log is keyed to the expiry date, so once you enter the new date, the reminders for the old one stop and the cycle starts again for the new one. Not renewing? Set Status to Let lapse and that row gets no more email.
- No pile-up. A row added late, or after a few days without the trigger, gets only the latest reminder that applies, once. An expired row never gets a “before” reminder.
- Safe to rerun. Rows are logged right after each email, a document lock stops two runs overlapping, at most
MAX_EMAILSgo per run, and it stops when your daily Apps Script email quota runs out (100 recipients a day on a personal Gmail account, 1,500 on Google Workspace). Anything left goes on the next run.
Step 4 (optional): read domain expiry dates from RDAP
Domain expiry dates are public. RDAP is the registration data service that replaced WHOIS for generic domains, and it returns the expiry date in a machine-readable form. The updateDomainExpiry function in the script above looks up every row with Type = Domain through rdap.org, a free service that forwards each lookup to the right registry, and writes the registry's expiry date into Expires when it differs. That keeps auto-renewed domains up to date without typing, and when a renewal goes through, the reminders roll over to the new date by themselves.
- Run
updateDomainExpiryonce. It asks for one extra permission, to connect to an external service. If you have a Checked column it notes the result per row. - Add a second daily trigger for it an hour before the reminder trigger, for example 7 to 8 AM, so reminders use fresh dates.
It only reads public data and only writes Expires and Checked. It pauses a second between lookups and does at most MAX_LOOKUPS per run. Some country-code domains have no RDAP service or don't publish an expiry date; those rows are noted and keep the date you typed. Internationalized domains need their xn-- form. The registry's date can be a day off your registrar's dashboard because of time zones; when they disagree, the registrar's renewal page is the one to trust. Certificates can't be looked up this way from Apps Script, so keep typing those dates, or use a certificate monitoring service for automated certificates.
Tips
- Check the contact addresses. While you build the sheet, check that the registrant and account email at each registrar and certificate authority is a mailbox someone reads, ideally a shared one, so their own notices arrive too.
- Payment cards expire. Most failed auto-renewals are a declined card. When a company card is replaced, use the renewal calendar to see which accounts need the new one.
- Don't record secrets. Keep registrar passwords, API keys and private keys out of the sheet. A note saying where the login lives is enough.
- Check the time zone. The script counts days in the spreadsheet's time zone (File › Settings › Time zone), and the triggers fire in the Apps Script project's time zone (Project Settings).
- Ownership. Triggers run as whoever created them, and the emails come from that account. Set them up from a shared operations account, not one person's, so they keep working when someone leaves.
- Managing for clients? Use one Owner email per client contact or per team member, and add a Client column for filtering. For contract terms and other recurring dates, see contract renewal alerts; for any date column, the general date email reminders guide.
See SheetReminders
Short on time? Watch the 50-second version
Related Google Sheets guides
- How to generate a PDF or Google Doc for each row in Google Sheets
- Find and remove duplicates in Google Sheets
- Compare two columns or two sheets for duplicates
- Find case-insensitive and fuzzy duplicates in Google Sheets
- Best Autocrat alternatives for mail merge to PDF and Docs
- Make invoices or certificates from Google Sheets rows
- Create sales quotes or estimates from Google Sheets
- Generate receipts from Google Sheets rows
- Create purchase orders from Google Sheets
- Make packing slips from Google Sheets orders
- Generate a PDF certificate from a Google Form response
- Issue numbered training completion certificates with expiry dates
- Make a PDF progress report for each student
- Generate offer letters from a Google Sheets hiring tracker
- Generate contracts and agreements from a Google Docs template
- Make work orders for service jobs from Google Sheets
- Email each row’s PDF as an attachment
- Automatic email reminders from a date column
- Contract renewal and expiration alerts from Google Sheets
- Track certificate of insurance (COI) expirations in Google Sheets
- Track employee license and certification expirations
- Track equipment and vehicle maintenance with reminders
- Equipment sign-out sheet with due-back and overdue reminders
- Track warranty expiration dates with reminders
- Birthday and work anniversary reminders from Google Sheets
- Rent due and lease renewal reminders from Google Sheets
- Send invoice payment reminders from Google Sheets
- Highlight overdue tasks and send email reminders
- Follow-up reminders for leads, clients and candidates
- Membership renewal reminders for clubs and associations
- Appointment reminder emails for clients
- Probation and performance review reminders for managers
- Inventory expiration dates with email alerts
- Domain and SSL certificate renewal reminders
- Name badges and place cards from a guest list
- Vehicle registration, inspection and insurance reminders
- Event sign-in sheets and table seating lists
- Pet vaccination expiry reminders for owners
- Customer account statements with aging
- Subscription tracker with renewal and free-trial reminders
- Mailing labels: one per household, clean addresses
- Volunteer shifts: open slots, reminders and rosters
- Year-end donor giving statements, one PDF per donor
- Volunteer hours verification letters, one PDF per request
- Instrument calibration due dates with email reminders
- Pay stubs from a payroll sheet, one PDF per employee
- Gift certificates with codes, balances and a redemption log
- Bill due dates: mark paid, 30-day totals and reminders
- Grant deadlines: LOIs, reports, owners and reminders
- Passport expiry: trips, the 6-month rule and renewal reminders
- Class rosters: one PDF per class, A–Z, with seat counts
- Insurance renewals: premium changes and reminders
- Onboarding checklists: tasks from start dates, owner reminders
- Raffle tickets: numbered stubs, seller books, sales tracker
- SheetWeave vs Autocrat
- SheetWeave vs Document Studio
- SheetWeave vs RowDocs
Instructions refer to Google Sheets, Apps Script and the certificate rules as they stood on November 14, 2026. Not affiliated with Google, ICANN, the CA/Browser Forum, Let's Encrypt, rdap.org or any other organization named here. Google Sheets is a trademark of Google LLC. Rules and services change, so verify with your registrar and certificate authority. Questions or corrections: hello@loomwise.app.