n8nflow.net logo

Monitor SSL Certificate Expiry with Google Sheets and Email Alerts

by Agus Narestha•Updated: Last update 3 months ago•Source: n8n.io
Loading workflow viewer...

Tags

Getting Started

šŸ”’ SSL Certificate Monitoring & Expiry Alert with Spreadsheet [FREE APIs]

āœ… What This Workflow Does

This n8n template automatically monitors SSL certificates of websites listed in a Google Sheet and sends email alerts if any are expiring within 14 days. It helps ensure you avoid downtime, security issues, and trust warnings due to expired certificates.


🧩 Key Features

  • šŸ“… Weekly Automation : Runs every Monday at 7:00 AM (configurable).
  • šŸ“„ Google Sheets Integration : Fetches and updates data in a spreadsheet.
  • šŸ” SSL Check via API : Uses ssl-checker.io to get certificate details.
  • āš ļø SSL Expiry Filter : Identifies certificates expiring within 14 days.
  • šŸ“§ Email Alerts : Sends notifications for certificates close to expiration.

šŸ“‚ Input Spreadsheet Format

Your Google Sheet should have the following columns:

NoNameLinkSSL Issued OnSSL Expired OnSSL Status
1Example Sitehttps://example.com2024-07-012025-07-01Valid
2My Bloghttps://myblog.org2024-07-052024-07-20Expiring

Each row should include a valid website URL in the Link column.


šŸ› ļø How It Works

  1. Scheduled Trigger

    • Executes weekly (Monday 7:00 AM).
  2. Fetch Website List

    • Reads all website entries from the Google Sheet.
  3. Check SSL Certificates

    • Uses ssl-checker.io API to retrieve certificate details for each website.
  4. Update Spreadsheet

    • Writes "Issued On" and "Expired On" fields back to the spreadsheet.
  5. Evaluate SSL Expiry

    • Filters for certificates expiring within 14 days.
  6. Check Condition

    • Determines whether to send alerts based on filtered results.
  7. Send Email Alert

    • Notifies via email if any certificates are expiring soon.

šŸ“¬ Example Email Output

Subject: āš ļø ALERT!! SSL EXPIRED

SSL certificates expiring soon:
- example.com (expires in 5 days)
- anotherdomain.net (expires in 3 days)

🧰 Setup Requirements

  • A Google Sheet with the correct columns and website links.
  • SMTP credentials to send alert emails.