πŸ”’ Monitor SSL certificate expiry with Google Sheets and email alerts

⚑ 620 views Β· πŸ”’ SecOps & Security Automation

Description

πŸ”’ 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


πŸ“‚ 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

πŸ”— Nodes Used

Send Email, Google Sheets, HTTP Request, Schedule Trigger

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup