Dev.to AI 🤖 Ai 👁 0 📖 1 min read

n8n workflow #3: a warning before a TLS certificate expires

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 firew

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

  1. Every morning: starts every day at 8 am.
  2. My domains: returns one item per domain. The next node therefore runs once per domain automatically, no loop node needed.
  3. Check certificate: asks my certificate checker for days left, issuer and chain (free, 30 checks per hour).
  4. Expiring soon?: collects all answers and keeps only those that expire soon or failed.
  5. 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

  1. Download the workflow: week-03.json.
  2. In n8n, top right “…” → “Import from File”.
  3. In every push node replace your-secret-topic with your own hard-to-guess topic and subscribe to it in the ntfy app (free, no account).
  4. 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 →

Originally published at daniele-michelin.com. More guides, free checks (SPF, TLS, headers) and an error-message lexicon: daniele-michelin.com/en/.

📰 Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.