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
- https://api.cloudflare.com/client/v4
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:
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
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.