PHP Client for Cloudflare API
Client Reference

Origin CA Certificates

Origin CA Certificates endpoint reference.

List

List all Origin CA certificates.

ParamTypeRequiredDefaultDescription
paramsarrayNo[]Query Parameters, e.g. `zone_id`.
php
$response = $client->originCACertificates()->list([]);
View this operation on the Cloudflare API Reference

Create

Create an Origin CA certificate.

ParamTypeRequiredDefaultDescription
csrstringYesCertificate Signing Request (CSR).
hostnamesarrayYesArray of hostnames or wildcard names bound to the certificate.
requestedValidityintNo5475The number of days for which the certificate should be valid.
requestTypestringNo'origin-rsa'The signature type desired on the certificate. Allowed values: `origin-rsa`, `origin-ecc`, `keyless-certificate`
php
$response = $client->originCACertificates()->create('CSR', [], 1, 'REQUEST_TYPE');
View this operation on the Cloudflare API Reference

Get

Get an Origin CA certificate.

ParamTypeRequiredDefaultDescription
certificateIdstringYesOrigin CA certificate Identifier.
php
$response = $client->originCACertificates()->get('CERTIFICATE_ID');
View this operation on the Cloudflare API Reference

Revoke

Revoke an Origin CA certificate.

ParamTypeRequiredDefaultDescription
certificateIdstringYesOrigin CA certificate Identifier.
php
$response = $client->originCACertificates()->revoke('CERTIFICATE_ID');
View this operation on the Cloudflare API Reference
Copyright © 2026