---
title: Custom Certificates
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api/typescript)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Custom Certificates

##### [List SSL Configurations](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates/methods/list)

client.customCertificates.list(CustomCertificateListParams { zone\_id, match, page, 2 more } params, RequestOptionsoptions?): V4PagePaginationArray<[CustomCertificate](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates#%28resource%29%20custom%5Fcertificates%20%3E%20%28model%29%20custom%5Fcertificate%20%3E%20%28schema%29) { id, zone\_id, bundle\_method, 12 more } \>

GET/zones/{zone\_id}/custom\_certificates

##### [SSL Configuration Details](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates/methods/get)

client.customCertificates.get(stringcustomCertificateID, CustomCertificateGetParams { zone\_id } params, RequestOptionsoptions?): [CustomCertificate](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates#%28resource%29%20custom%5Fcertificates%20%3E%20%28model%29%20custom%5Fcertificate%20%3E%20%28schema%29) { id, zone\_id, bundle\_method, 12 more } 

GET/zones/{zone\_id}/custom\_certificates/{custom\_certificate\_id}

##### [Create SSL Configuration](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates/methods/create)

client.customCertificates.create(CustomCertificateCreateParams { zone\_id, certificate, bundle\_method, 6 more } params, RequestOptionsoptions?): [CustomCertificate](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates#%28resource%29%20custom%5Fcertificates%20%3E%20%28model%29%20custom%5Fcertificate%20%3E%20%28schema%29) { id, zone\_id, bundle\_method, 12 more } 

POST/zones/{zone\_id}/custom\_certificates

##### [Edit SSL Configuration](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates/methods/edit)

client.customCertificates.edit(stringcustomCertificateID, CustomCertificateEditParams { zone\_id, bundle\_method, certificate, 5 more } params, RequestOptionsoptions?): [CustomCertificate](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates#%28resource%29%20custom%5Fcertificates%20%3E%20%28model%29%20custom%5Fcertificate%20%3E%20%28schema%29) { id, zone\_id, bundle\_method, 12 more } 

PATCH/zones/{zone\_id}/custom\_certificates/{custom\_certificate\_id}

##### [Delete SSL Configuration](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates/methods/delete)

client.customCertificates.delete(stringcustomCertificateID, CustomCertificateDeleteParams { zone\_id } params, RequestOptionsoptions?): [CustomCertificateDeleteResponse](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates#%28resource%29%20custom%5Fcertificates%20%3E%20%28model%29%20custom%5Fcertificate%5Fdelete%5Fresponse%20%3E%20%28schema%29) { id } 

DELETE/zones/{zone\_id}/custom\_certificates/{custom\_certificate\_id}

##### ModelsExpand Collapse 

CustomCertificate { id, zone\_id, bundle\_method, 12 more } 

id: string

Identifier.

maxLength32

zone\_id: string

Identifier.

maxLength32

bundle\_method?: [BundleMethod](https://developers.cloudflare.com/api/typescript/resources/custom%5Fhostnames#%28resource%29%20custom%5Fhostnames%20%3E%20%28model%29%20bundle%5Fmethod%20%3E%20%28schema%29)

A ubiquitous bundle has the highest probability of being verified everywhere, even by clients using outdated or unusual trust stores. An optimal bundle uses the shortest chain and newest intermediates. And the force bundle verifies the chain, but does not otherwise modify it.

custom\_csr\_id?: string

The identifier for the Custom CSR that was used.

expires\_on?: string

When the certificate from the authority expires.

formatdate-time

geo\_restrictions?: [GeoRestrictions](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates#%28resource%29%20custom%5Fcertificates%20%3E%20%28model%29%20geo%5Frestrictions%20%3E%20%28schema%29) { label } 

Specify the region where your private key can be held locally for optimal TLS performance. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Options allow distribution to only to U.S. data centers, only to E.U. data centers, or only to highest security data centers. Default distribution is to all Cloudflare datacenters, for optimal performance.

hosts?: Array<string\>

issuer?: string

The certificate authority that issued the certificate.

keyless\_server?: [KeylessCertificate](https://developers.cloudflare.com/api/typescript/resources/keyless%5Fcertificates#%28resource%29%20keyless%5Fcertificates%20%3E%20%28model%29%20keyless%5Fcertificate%20%3E%20%28schema%29) { id, created\_on, enabled, 7 more } 

modified\_on?: string

When the certificate was last modified.

formatdate-time

policy\_restrictions?: string

The policy restrictions returned by the API. This field is returned in responses when a policy has been set. The API accepts the “policy” field in requests but returns this field as “policy\_restrictions” in responses.

Specifies the region(s) where your private key can be held locally for optimal TLS performance. Format is a boolean expression, for example: “(country: US) or (region: EU)”

priority?: number

The order/priority in which the certificate will be used in a request. The higher priority will break ties across overlapping ‘legacy\_custom’ certificates, but ‘legacy\_custom’ certificates will always supercede ‘sni\_custom’ certificates.

signature?: string

The type of hash used for the certificate.

status?: "active" | "expired" | "deleted" | 2 more

Status of the zone’s custom SSL.

One of the following:

"active"

"expired"

"deleted"

"pending"

"initializing"

uploaded\_on?: string

When the certificate was uploaded to Cloudflare.

formatdate-time

GeoRestrictions { label } 

Specify the region where your private key can be held locally for optimal TLS performance. HTTPS connections to any excluded data center will still be fully encrypted, but will incur some latency while Keyless SSL is used to complete the handshake with the nearest allowed data center. Options allow distribution to only to U.S. data centers, only to E.U. data centers, or only to highest security data centers. Default distribution is to all Cloudflare datacenters, for optimal performance.

label?: "us" | "eu" | "highest\_security"

One of the following:

"us"

"eu"

"highest\_security"

CustomCertificateDeleteResponse { id } 

id?: string

Identifier.

maxLength32

#### Custom CertificatesPrioritize

##### [Re-prioritize SSL Certificates](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates/subresources/prioritize/methods/update)

client.customCertificates.prioritize.update(PrioritizeUpdateParams { zone\_id, certificates } params, RequestOptionsoptions?): SinglePage<[CustomCertificate](https://developers.cloudflare.com/api/typescript/resources/custom%5Fcertificates#%28resource%29%20custom%5Fcertificates%20%3E%20%28model%29%20custom%5Fcertificate%20%3E%20%28schema%29) { id, zone\_id, bundle\_method, 12 more } \>

PUT/zones/{zone\_id}/custom\_certificates/prioritize