Automate SSL Expiry Alerts with n8n & Google Sheets

Struggling to manually track SSL certificate expirations? This n8n workflow automates SSL expiry checks using Google Sheets and sends timely Gmail alerts, saving you hours and preventing website downtime.
googleSheets
scheduleTrigger
httpRequest
+3
Workflow Identifier: 2259
NODES in Use: Google Sheets, Schedule Trigger, HTTP Request, If, Gmail, Sticky Note
Automate SSL expiry with n8n and Google Sheets

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

What This Automation Does

This workflow checks website SSL certificates for expiration every week.
It reads URLs from Google Sheets, calls SSL-Checker.io API to get expiry dates, and updates the sheet with new info.
If any certificate will expire soon—within 7 days—it sends an alert email via Gmail.
This stops missed renewals and avoids website downtime.


Tools & Services Used

  • Google Sheets: Stores URLs and SSL expiry data.
  • HTTP Request node: Calls SSL-Checker.io API to check certificate details.
  • Gmail: Sends alert emails when certificates are near expiry.
  • n8n Schedule Trigger: Runs workflow weekly on set day/time.

Inputs, Processing, and Output

Inputs

  • URL list from Google Sheets with website addresses and last known expiry dates.

Processing Steps

  • Fetch URL rows from Google Sheets.
  • Call the SSL-Checker.io API for each URL to get fresh expiry info.
  • Update Google Sheets with new expiry dates and days left.
  • Check if any certificates expire in 7 days or less.
  • Send alert emails for certificates expiring soon.

Output

  • Google Sheets updated with current expiry info.
  • Email alerts sent for SSL certificates nearing expiry.

Beginner Step-by-Step: How To Use This Workflow in n8n

Importing and Setting Up

  1. Download the workflow file using the Download button provided with this page.
  2. Open your n8n editor where you want to set up the workflow.
  3. Choose Import from File and select the downloaded workflow file.
  4. After import, add your Google Sheets and Gmail credentials.
  5. Update any sheet IDs, email addresses, or channel names if the workflow uses custom values.
  6. Review any code expressions provided, especially the URL field in the HTTP Request node, to make sure they match your data.
  7. Run the workflow once manually to test and confirm everything works as expected.
  8. If all looks good, activate the workflow to start the weekly automatic checks.
  9. For advanced users running n8n on a private server, consider self-host n8n for better control.

Step-by-Step Guide Outline (Key Node Configurations)

Step 1: Schedule Weekly Workflow Trigger

  1. Add a Schedule Trigger node.
  2. Set it to run weekly at your preferred day and time.

Step 2: Fetch URLs from Google Sheets

  1. Add a Google Sheets node named “Fetch URLs.”
  2. Authorize with Google OAuth2.
  3. Set operation to “Read Rows” and provide your sheet details.

Step 3: Check SSL Certificate via HTTP Request

  1. Add HTTP Request node called “Check SSL.”
  2. Use this URL expression to call the SSL-Checker.io API:
=https://ssl-checker.io/api/v1/check/{{ $json["URL"].replace(/^https?:\/\//, "").replace(/\/$/, "") }}

Step 4: Update Google Sheets with Latest SSL Expiry Data

  1. Add another Google Sheets node named “URLs to Monitor.”
  2. Set operation to “Update” and map these fields:
  • URL{{ $json.result.host }}
  • KnownExpiryDate{{ $json.result.valid_till }}

Step 5: Conditional Check on Expiry Date

  1. Add an If node named “Expiry Alert.”
  2. Condition: Number ≤ 7 on field {{ $json.result.days_left }}.

Step 6: Send Alert Email via Gmail

  1. Add Gmail node called “Send Alert Email.”
  2. Set recipient email, subject, and body using:
  • Subject: SSL Expiry - {{ $json.result.days_left }} Days Left - {{ $json.result.host }}
  • Message body: Same as subject, plain text.

Customizations ✏️

  • Change the expiry alert days in the If node to control how early alerts send.
  • Add Slack notification to alert teams in chat instead of or along with email.
  • Use webhooks or APIs to add URLs dynamically to Google Sheets.
  • Make alert emails HTML formatted for better looks in the Gmail node.
  • Configure retry logic on the HTTP Request node to handle temporary API failures.

Troubleshooting 🔧

  • Google Sheets authentication fails: Fix by reauthenticating Google OAuth2 in n8n and check permissions.
  • HTTP request URL or API errors: Double-check JS expressions in HTTP Request URL field and test URLs individually.
  • Email sending issues: Reauthorize Gmail node, confirm OAuth2 setup, ensure account allows SMTP or app passwords if 2FA enabled.

Pre-Production Checklist ✅

  • Verify Google Sheets nodes read and update sample data correctly.
  • Test SSL-Checker.io API response with HTTP Request node alone.
  • Confirm If node triggers on certificates expiring in 7 days or less.
  • Test sending alert email to confirm Gmail node is working.
  • Backup Google Sheets before running updates to prevent data loss.

Deployment Guide

After testing all nodes, activate the Schedule Trigger for weekly automatic runs.
Monitor workflow logs regularly for errors.
Set up additional error alerts if possible to respond quickly.


Summary and Results

✓ Weekly automated SSL expiry checks save time.
✓ Google Sheets stays up to date with current certificate status.
✓ Email alerts catch certificates expiring soon before they cause problems.
✓ Avoid downtime and loss of user trust caused by expired SSL.


Automate SSL expiry with n8n and Google Sheets

Visit through Desktop to Interact with the Workflow.

Frequently Asked Questions

Yes, n8n supports many email nodes like Outlook, SMTP, or SendGrid. Replace Gmail node accordingly.
No, this workflow uses a public free API from SSL-Checker.io that does not require authentication.
Reauthenticate Google OAuth2 credentials in n8n and check that the API permissions include access to the required sheets.
The workflow can handle hundreds of URLs, but watch for Google Sheets API rate limits and n8n execution timeouts.

Related Workflows

Automate Twist Channel Creation and Messaging with n8n

This workflow automates creating and updating a channel in Twist and sending a personalized message to specific users. It eliminates manual setup errors and saves time managing Twist communications.

Automate Ideogram Image Generation with Google Sheets & Gmail

This workflow automates graphic design image generation via Ideogram AI, storing image data in Google Sheets and Google Drive, with email alerts via Gmail. It saves designers hours by automating image creation, remixing, review, and record-keeping.

Automate IT Support with Slack and OpenAI in n8n

Streamline IT support by automating Slack message handling using n8n and OpenAI. This workflow handles Slack DMs, filters bots, queries a Confluence knowledge base, and delivers AI-generated responses, improving support efficiency and response time.

Automate Crypto Analysis with CoinMarketCap & n8n AI Agent

Discover how this unique n8n workflow leverages CoinMarketCap’s multi-agent AI to deliver precise, real-time cryptocurrency insights directly via Telegram. Manage crypto data analysis efficiently with automated multi-source API integration.

Automate Gumroad to Beehiiv Subscriber Sync with n8n

Learn how to automatically add new Gumroad sales customers as Beehiiv newsletter subscribers using n8n automation. This workflow saves time by syncing sales data to Google Sheets CRM and notifying your Telegram channel instantly.

Generate On-Brand Blog Articles Using n8n and OpenAI

This workflow automates the creation of on-brand blog articles by analyzing existing company content using n8n and OpenAI. It extracts article structures and brand voice to produce consistent draft articles, saving significant content creation time.
1:1 Free Strategy Session
Your competitors are already automating. Are you still paying for it manually?

Do you want to adopt AI Automation?

Every hour your team does repetitive work, you're burning real money.
While you wait, faster businesses are cutting costs and moving quicker.
AI and automations aren't the future anymore — they're the present.

Book a live 1-on-1 session where we show you exactly which of your daily tasks can be automated — and what it’s costing you not to.