n8n workflow of the week · Episode 3 of 21 · useful
Expired certificates are among the most embarrassing outages because they are so avoidable. Usually the automatic renewal failed quietly: a changed DNS record, a firewall rule, a full disk. This workflow checks a list of domains every morning and only speaks up when one is running short.
How it works
- Every morning: starts every day at 8 am.
- My domains: returns one item per domain. The next node therefore runs once per domain automatically, no loop node needed.
- Check certificate: asks my certificate checker for days left, issuer and chain (free, 30 checks per hour).
- Expiring soon?: collects all answers and keeps only those that expire soon or failed.
- Push to phone: sends title and text to ntfy.sh; the app shows them as a push notification.
What it is good for
For anyone looking after more than two domains, or with certificates that are not renewed automatically: mail servers, VPN, internal portals. It works just as well for customer domains if you run hosting.
Make it yours
The domain list can come from a spreadsheet, a Nextcloud file or a database instead of the code. If you have many domains or want to check internal servers, replace the HTTP node with an “Execute Command” node running openssl s_client on your own server.
Import it in two minutes
- Download the workflow: week-03.json.
- In n8n, top right “…” → “Import from File”.
- In every push node replace
your-secret-topicwith your own hard-to-guess topic and subscribe to it in the ntfy app (free, no account). - Adjust the values marked with a comment in the Code node, press “Execute workflow” once, then activate it.
New to n8n? The basics are in n8n introduced.
All episodes of the series →
Start an n8n workflow live with one click →