# Cloudflare Origin CA Integrations

Manage certificates used by Cloudflare to connect to your origin servers. Issue a signed PEM, track renewal dates, or revoke a certificate after retiring its origin.

## Setup notes

- **Connect a zone** Enter the zone ID and a scoped Cloudflare API token. Grant SSL and Certificates Read for lookups or Edit for issuance and revocation. FastHook checks access by listing certificates.
- **Issue a certificate** Generate the key and signing request on your origin server. Send only the PEM signing request, choose the hostnames, and select the certificate type and validity. Install the returned certificate alongside the original key.
- **Track renewal dates** Run the list action on a schedule and use the expiration date to notify your team. Choose a page size or collect all pages for smaller inventories.
- **Retire an old certificate** Check that the origin serves a working replacement before revoking its previous certificate. Use the exact serial number as text and retain the revocation receipt.

## Workflow templates

- [Inspect an Origin CA certificate from a Todoist audit project](https://www.fasthook.io/templates/todoist-new-tasks-to-origin-ca.md): Use a Todoist intake project for certificate checks.
- [Read the Cloudflare Origin CA inventory for new Trello audit requests](https://www.fasthook.io/templates/trello-new-cards-to-origin-ca.md): Use a dedicated Trello board for certificate inventory requests.
- [Look up a Cloudflare Origin CA certificate from a Jira review queue](https://www.fasthook.io/templates/jira-new-issues-to-origin-ca.md): Use a Jira project or JQL filter for certificate-review issues.
- [Revoke a retired origin certificate and notify Slack](https://www.fasthook.io/templates/origin-ca-retirement-receipts-to-slack.md): Match an approved retirement to a configured certificate, revoke it and post the Cloudflare receipt to the operations channel.
- [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.
- [Send approaching origin certificate expirations to Slack](https://www.fasthook.io/templates/origin-ca-expiry-digest-to-slack.md): Check the zone each day and tell the operations channel which origin certificates are due for renewal within 30 days.
- [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.

## Actions

- **Issue a certificate for your origin server** — Sign a certificate signing request for the selected hostnames. Keep the private key on the origin server.
- **List origin certificates in a zone** — Find the hostnames, serial numbers and expiry dates of certificates in the connected zone. Choose a page or collect all pages.
- **Look up an origin certificate** — Read the hostnames, expiration date and signed certificate for a specific serial number.
- **Revoke an origin certificate** — Permanently withdraw trust from the selected certificate after replacing it or retiring its origin server.
