# Send approaching origin certificate expirations to Slack

Check the zone each day and tell the operations channel which origin certificates are due for renewal within 30 days.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=origin-ca-expiry-digest-to-slack&templateName=Send+approaching+origin+certificate+expirations+to+Slack)

**Required accounts**

- Cloudflare Origin CA
- Slack

## Send approaching origin certificate expirations to Slack

### 1. Trigger · Daily schedule

**Schedule**. Run automatically on the configured schedule.

### 2. Action · Collect certificates from every page

**Cloudflare Origin CA**. Find the hostnames, serial numbers and expiry dates of certificates in the connected zone. Choose a page or collect all pages.

### 3. Transformation · Find certificates due for renewal

**FastHook**. Run JavaScript to prepare data for the next workflow step.

### 4. Filter · Continue when a certificate needs renewal

**FastHook**. Continue only when the configured conditions match the incoming record.

### 5. Action · Send the renewal digest

**Slack**. Send text, Block Kit content, attachments, or a thread reply to a channel.

## Set up your workflow

1. **Choose a zone and time** Connect Origin CA and set the daily schedule and timezone. The list action reads every page in the selected zone. To monitor just one hostname, set it in the renewal filter.
2. **Choose the operations channel** Connect Slack, invite the bot and enter the channel ID. A certificate expiring in 30 days or less appears in the digest.
3. **Verify the reminder** Compare the dates and serial numbers with the Origin Server tab in Cloudflare. When no certificates need renewal, the workflow stops before Slack.

## Related integrations

- [Schedule trigger](https://www.fasthook.io/docs/triggers/schedule)
- [Cloudflare Origin CA integrations](https://www.fasthook.io/apps/cloudflare-origin-ca/integrations)
- [Slack integrations](https://www.fasthook.io/apps/slack/integrations)

## Related workflow templates

- [Send overdue paid orders to Slack](https://www.fasthook.io/templates/cloudflare-d1-overdue-orders-to-slack.md): Post the IDs of paid orders still awaiting shipment after two business days.
