Expired TLS certificates remain one of the most frustrating, yet avoidable, causes of service downtime. In the third episode of a 21-part n8n workflow series, developer Daniele Michelin outlines a practical automation pattern that checks domain validity every morning and pushes alerts directly to mobile devices. The workflow targets the root cause of many outages: silent failures in automatic renewal processes due to DNS changes, firewall rules, or full disks.
The Automation Logic
The workflow triggers daily at 8 AM, pulling a list of domains from a code node that outputs one item per domain. This structure allows the subsequent certificate check node to run once per domain without requiring a loop node. The system queries a free certificate checker API, retrieving days remaining, issuer details, and chain status, limited to 30 checks per hour. A filtering node then isolates only those certificates that are nearing expiration or have failed the check entirely.
Notification and Customization
Alerts are dispatched via ntfy.sh, a free push notification service that requires no account setup. Users must replace the placeholder topic with a unique, hard-to-guess string to ensure privacy. For those managing extensive infrastructure, the author suggests replacing the HTTP node with an "Execute Command" node running openssl s_client on a self-hosted server. This allows for checking internal servers and bypassing external API rate limits. The domain list itself can be dynamically sourced from spreadsheets, Nextcloud files, or databases.
Key Takeaways
- The workflow uses a one-item-per-domain output to eliminate the need for complex loop nodes in n8n.
- ntfy.sh provides a frictionless, account-free method for receiving push notifications on mobile devices.
- Internal or high-volume checks can be optimized by swapping API calls for local
opensslcommand execution. - Silent renewal failures are often caused by overlooked infrastructure changes like DNS records or disk space.
The Bottom Line
Silent failures are the enemy of reliability. This n8n pattern is a low-effort, high-impact solution for developers who want to stop fixing preventable outages at 3 AM.