POST /zones/{zone_id}/custom_csrs

Generate a new custom Certificate Signing Request (CSR) for a zone. Cloudflare generates and securely stores the private key associated with the CSR. The CSR can then be provided to a Certificate Authority for signing. Once signed, the certificate is uploaded via the Custom SSL endpoint using the CSR ID.

Servers

Path parameters

Name Type Required Description
zone_id String Yes

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
key_type String No

Key algorithm to use for the CSR. Defaults to rsa2048 if not specified.

Valid values:

  • "rsa2048"
  • "p256v1"

Default value: "rsa2048"

organizational_unit String No

Organizational unit name.

locality String Yes

City or locality name.

common_name String Yes

The common name (domain) for the CSR. Must be at most 64 characters.

country String Yes

Two-letter ISO 3166-1 alpha-2 country code.

organization String Yes

Organization name.

state String Yes

State or province name.

sans[] Array Yes

Subject Alternative Names for the CSR. At least one SAN is required. The list should include the common name.

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.