# Revoke a retired origin certificate and notify Slack

Match an approved retirement to a configured certificate, revoke it and post the Cloudflare receipt to the operations channel.

[Use template](https://dashboard.fasthook.io/workflow/new?templateKey=origin-ca-retirement-receipts-to-slack&templateName=Revoke+a+retired+origin+certificate+and+notify+Slack)

**Required accounts**

- Cloudflare Origin CA
- Slack

## Revoke a retired origin certificate and notify Slack

### 1. Trigger · Certificate retirement approved

**Webhook**. Receive a JSON submission from your existing form backend at this Workflow's private webhook URL.

### 2. Transformation · Match the approved serial number

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

### 3. Action · Revoke the retired certificate

**Cloudflare Origin CA**. Permanently withdraw trust from the selected certificate after replacing it or retiring its origin server.

### 4. Action · Post the revocation receipt

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

## Set up your workflow

1. **Verify the replacement first** Confirm that the origin serves its replacement certificate. Revoking the previous certificate permanently withdraws trust.
2. **Pin one certificate** Paste the full serial as text into Match the approved serial number. Give the private webhook only to the system that approves changes.
3. **Deliver the receipt** Set the Slack channel and send certificate\_id and change\_id after approval. Check the receipt against the serial and revocation time from Cloudflare.

## Related integrations

- [Webhook trigger](https://www.fasthook.io/docs/triggers/webhook)
- [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

- [Archive newly issued origin certificates in R2](https://www.fasthook.io/templates/origin-ca-issued-certificates-to-r2.md): Sign a CSR for a configured origin hostname and save the signed PEM in R2 under its serial number.
- [Record origin certificate details in D1](https://www.fasthook.io/templates/origin-ca-certificate-inventory-to-d1.md): Look up a certificate by serial number and refresh its hostname and expiry record in D1.
- [Share desktop and mobile deployment previews in Slack](https://www.fasthook.io/templates/webhook-deployment-screenshots-to-slack.md): Render the deployed page at two viewport sizes and attach both PNGs to one Slack message.
- [Refresh a published URL and confirm it in Slack](https://www.fasthook.io/templates/webhook-cache-refresh-to-slack.md): Use a publisher webhook to evict one page and send the Cloudflare receipt to the editorial channel.
- [Send Figma file details to Slack from a webhook](https://www.fasthook.io/templates/webhook-figma-file-metadata-to-slack.md): Receive a webhook with a Figma file key, read the file's metadata from Figma, and send its name and key to a Slack channel.
