Webhook logo
Cloudflare Origin CA logo
Cloudflare R2 logo
H

Workflow template

Archive newly issued origin certificates in R2

Sign a CSR for a configured origin hostname and save the signed PEM in R2 under its serial number.

How it works

Archive newly issued origin certificates in R2

1 Trigger · 3 Actions
Webhook1 · Trigger

Origin server requests a certificate

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

Cloudflare Origin CA2 · Action

Sign the origin server’s request

Sign a certificate signing request for the selected hostnames. Keep the private key on the origin server.

Cloudflare R23 · Action

Reserve the PEM archive location

Create an expiring URL for one object.

Http4 · Action

Save the signed PEM in R2

Send an HTTP request and use the response in subsequent steps.

Before activation

Set up your workflow

  1. Set the certificate policy

    Connect the zone and enter an explicit list of hostnames in the signing step. Select the certificate type and lifetime for your origin.

  2. Choose the archive

    Connect R2 and select a private bucket. Each issuance creates a separate PEM object named after its serial number.

  3. Send a signing request

    Keep the private key on the server. POST only the PEM signing request in the csr field to your private webhook. Compare the archived PEM with the issued certificate before installing it.

Explore connected apps