---
title: MTLS Certificates
---

[Skip to content](#_top)

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

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# MTLS Certificates

##### [List mTLS certificates](https://developers.cloudflare.com/api/go/resources/mtls_certificates/methods/list)

client.MTLSCertificates.List(ctx, params) (\*SinglePage\[[MTLSCertificate](<https://developers.cloudflare.com/api/go/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/mtls\_certificates

##### [Get mTLS certificate](https://developers.cloudflare.com/api/go/resources/mtls_certificates/methods/get)

client.MTLSCertificates.Get(ctx, mtlsCertificateID, query) (\*[MTLSCertificate](<https://developers.cloudflare.com/api/go/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/mtls\_certificates/{mtls\_certificate\_id}

##### [Upload mTLS certificate](https://developers.cloudflare.com/api/go/resources/mtls_certificates/methods/create)

client.MTLSCertificates.New(ctx, params) (\*[MTLSCertificateNewResponse](<https://developers.cloudflare.com/api/go/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20MTLSCertificateNewResponse%20%3E%20(schema)>), error)

POST/accounts/{account\_id}/mtls\_certificates

##### [Delete mTLS certificate](https://developers.cloudflare.com/api/go/resources/mtls_certificates/methods/delete)

client.MTLSCertificates.Delete(ctx, mtlsCertificateID, body) (\*[MTLSCertificate](<https://developers.cloudflare.com/api/go/resources/mtls_certificates#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>), error)

DELETE/accounts/{account\_id}/mtls\_certificates/{mtls\_certificate\_id}

##### ModelsExpand Collapse

<details>

<summary>

type MTLSCertificate struct{…}

</summary>

ID stringOptional

Certificate identifier tag.

maxLength36

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

CA boolOptional

Indicates whether the certificate is a CA or leaf certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20ca">Link to this property</a>

Certificates stringOptional

The uploaded root CA certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20certificates">Link to this property</a>

ExpiresOn TimeOptional

When the certificate expires.

formatdate-time

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20expires_on">Link to this property</a>

Issuer stringOptional

The certificate authority that issued the certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20issuer">Link to this property</a>

Name stringOptional

Optional unique name for the certificate. Only used for human readability.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20name">Link to this property</a>

SerialNumber stringOptional

The certificate serial number.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20serial_number">Link to this property</a>

Signature stringOptional

The type of hash used for the certificate.

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20signature">Link to this property</a>

<details>

<summary>

Type MTLSCertificateTypeOptional

The type of the certificate, indicating how it was created and who manages it.

</summary>

One of the following:

const MTLSCertificateTypeCustom MTLSCertificateType = "custom"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const MTLSCertificateTypeGatewayManaged MTLSCertificateType = "gateway\_managed"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const MTLSCertificateTypeAccessManaged MTLSCertificateType = "access\_managed"

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

UploadedOn TimeOptional

This is the time the certificate was uploaded.

formatdate-time

<a href="#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)%20%3E%20(property)%20uploaded_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20mtls_certificates%20%3E%20(model)%20mtls_certificate%20%3E%20(schema)>)

#### MTLS CertificatesAssociations

##### [List mTLS certificate associations](https://developers.cloudflare.com/api/go/resources/mtls_certificates/subresources/associations/methods/get)

client.MTLSCertificates.Associations.Get(ctx, mtlsCertificateID, query) (\*SinglePage\[[CertificateAsssociation](<https://developers.cloudflare.com/api/go/resources/mtls_certificates#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)>)], error)

GET/accounts/{account\_id}/mtls\_certificates/{mtls\_certificate\_id}/associations

##### ModelsExpand Collapse

<details>

<summary>

type CertificateAsssociation struct{…}

</summary>

Service stringOptional

The service using the certificate.

<a href="#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)%20%3E%20(property)%20service">Link to this property</a>

Status stringOptional

Certificate deployment status for the given service.

<a href="#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

</details>

[Link to this property](<#(resource)%20mtls_certificates.associations%20%3E%20(model)%20certificate_asssociation%20%3E%20(schema)>)