---
title: Custom Csrs
---

[Skip to content](#%5Ftop) 

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

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Custom Csrs

##### [List Custom CSRs](https://developers.cloudflare.com/api/go/resources/custom%5Fcsrs/methods/list)

client.CustomCsrs.List(ctx, params) (\*V4PagePaginationArray\[[CustomCsrListResponse](https://developers.cloudflare.com/api/go/resources/custom%5Fcsrs#%28resource%29%20custom%5Fcsrs%20%3E%20%28model%29%20CustomCsrListResponse%20%3E%20%28schema%29)\], error)

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_csrs

##### [Create Custom CSR](https://developers.cloudflare.com/api/go/resources/custom%5Fcsrs/methods/create)

client.CustomCsrs.New(ctx, params) (\*[CustomCsrNewResponse](https://developers.cloudflare.com/api/go/resources/custom%5Fcsrs#%28resource%29%20custom%5Fcsrs%20%3E%20%28model%29%20CustomCsrNewResponse%20%3E%20%28schema%29), error)

POST/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_csrs

##### [Custom CSR Details](https://developers.cloudflare.com/api/go/resources/custom%5Fcsrs/methods/get)

client.CustomCsrs.Get(ctx, customCsrID, query) (\*[CustomCsrGetResponse](https://developers.cloudflare.com/api/go/resources/custom%5Fcsrs#%28resource%29%20custom%5Fcsrs%20%3E%20%28model%29%20CustomCsrGetResponse%20%3E%20%28schema%29), error)

GET/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_csrs/{custom\_csr\_id}

##### [Delete Custom CSR](https://developers.cloudflare.com/api/go/resources/custom%5Fcsrs/methods/delete)

client.CustomCsrs.Delete(ctx, customCsrID, body) (\*[CustomCsrDeleteResponse](https://developers.cloudflare.com/api/go/resources/custom%5Fcsrs#%28resource%29%20custom%5Fcsrs%20%3E%20%28model%29%20CustomCsrDeleteResponse%20%3E%20%28schema%29), error)

DELETE/{accounts\_or\_zones}/{account\_or\_zone\_id}/custom\_csrs/{custom\_csr\_id}

##### ModelsExpand Collapse 

type CustomCsr struct{…}

A custom Certificate Signing Request (CSR).

ID string

Custom CSR identifier tag.

maxLength36

CreatedAt Time

When the CSR was created.

formatdate-time

KeyType CustomCsrKeyType

The key algorithm used to generate the CSR.

One of the following:

const CustomCsrKeyTypeRsa2048 CustomCsrKeyType \= "rsa2048"

const CustomCsrKeyTypeP256v1 CustomCsrKeyType \= "p256v1"

CommonName stringOptional

The common name (domain) for the CSR.

maxLength64

Country stringOptional

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

Csr stringOptional

The PEM-encoded Certificate Signing Request.

Locality stringOptional

City or locality name.

Organization stringOptional

Organization name.

OrganizationalUnit stringOptional

Organizational unit for the CSR subject.

Sans \[\]stringOptional

Subject Alternative Names included in the CSR.

State stringOptional

State or province name.