Generate SSL/TLS Certificate Expiry Reports with AWS ACM and AI for Slack & Email

Automated SSL/TLS Certificate Expiry Report for AWS

> Automatically generates a weekly report of all AWS ACM certificates, including status, expiry dates, and renewal eligibility. The workflow formats the data into both Markdown (for PDF export to Slack) and HTML (for email summary), helping teams stay on top of certificate compliance and expiration risks.

Whoโ€™s it for This workflow is designed for DevOps engineers, cloud administrators, and compliance teams who manage AWS infrastructure and need automated weekly visibility into the status of their SSL/TLS certificates in AWS Certificate Manager (ACM). It's ideal for teams that want to reduce the risk of expired certs, track renewal eligibility, and maintain reporting for audit or operational purposes.

How it works / What it does This n8n workflow performs the following actions on a weekly schedule:

Trigger: Automatically runs once a week using the Weekly schedule trigger. Fetch Certificates: Uses Get many certificates action from AWS Certificate Manager to retrieve all certificate records. Parse Data: Processes and reformats certificate data (dates, booleans, SANs, etc.) into a clean JSON object. Generate Reports: ๐Ÿ“„ Markdown Report: Uses the Certificate Summary Markdown Agent (OpenAI) to generate a Markdown report for PDF export. ๐ŸŒ HTML Report: Uses the Certificate Summary HTML Agent to generate a styled HTML report for email. Deliver Reports: Converts Markdown to PDF and sends it to Slack as a file. Sends HTML content as a formatted email.

How to set up

Configure AWS Credentials in n8n to allow access to AWS ACM. Create a new workflow and use the following nodes in sequence: Schedule Trigger: Weekly (e.g., every Monday at 08:00 UTC) AWS ACM โ†’ Get many certificates Function Node โ†’ Parse ACM Data: Converts and summarizes certificate metadata OpenAI Chat Node (Markdown Agent) with a system/user prompt to generate Markdown Configure Metadata โ†’ Define file name and MIME type (.md) Create document file โ†’ Converts Markdown to document stream Convert to PDF Slack Node โ†’ Upload the PDF to a channel (Optional) Add a second OpenAI Chat Node for generating HTML and sending it via email

Connect Output: Markdown report โ†’ Slack file upload HTML report โ†’ Email node with embedded HTML

Requirements

๐ŸŸฉ n8n instance (self-hosted or cloud) ๐ŸŸฆ AWS account with access to ACM ๐ŸŸจ OpenAI API key (for ChatGPT Agent) ๐ŸŸฅ Slack webhook or OAuth credentials (for file upload) ๐Ÿ“ง Email integration (e.g., SMTP or SendGrid) ๐Ÿ“ Permissions to write documents (Google Drive / file node)

How to customize the workflow

Change report frequency**: Adjust the Weekly schedule trigger to daily or monthly as needed. Filter certificates**: Modify the function node to only include EXPIRED, IN_USE, or INELIGIBLE certs. Add tags or domains to include/exclude. Add visuals**: Enhance the HTML version with colored rows, icons, or company branding. Change delivery channels**: Replace Slack with Microsoft Teams, Discord, or Telegram. Send Markdown as email attachment instead of PDF. Integrate ticketing**: Create a JIRA/GitHub issue for each certificate that is EXPIRED or INELIGIBLE.

0
Downloads
0
Views
8.58
Quality Score
intermediate
Complexity
Author:Trung Tran(View Original โ†’)
Created:9/10/2025
Updated:10/24/2025

๐Ÿ”’ Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments