---
title: Hostname Certificates
---

[Skip to content](#_top)

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

[Origin TLS Client Auth](https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth)

Copy Markdown

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

---

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

# Hostname Certificates

##### [List Certificates](https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth/subresources/hostname_certificates/methods/list)

client.OriginTLSClientAuth.HostnameCertificates.List(ctx, query) (\*SinglePage\[[HostnameCertificateListResponse](<https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20HostnameCertificateListResponse%20%3E%20(schema)>)], error)

GET/zones/{zone\_id}/origin\_tls\_client\_auth/hostnames/certificates

##### [Get the Hostname Client Certificate](https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth/subresources/hostname_certificates/methods/get)

client.OriginTLSClientAuth.HostnameCertificates.Get(ctx, certificateID, query) (\*[HostnameCertificateGetResponse](<https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20HostnameCertificateGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/origin\_tls\_client\_auth/hostnames/certificates/{certificate\_id}

##### [Upload a Hostname Client Certificate](https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth/subresources/hostname_certificates/methods/create)

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

POST/zones/{zone\_id}/origin\_tls\_client\_auth/hostnames/certificates

##### [Delete Hostname Client Certificate](https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth/subresources/hostname_certificates/methods/delete)

client.OriginTLSClientAuth.HostnameCertificates.Delete(ctx, certificateID, body) (\*[HostnameCertificateDeleteResponse](<https://developers.cloudflare.com/api/go/resources/origin_tls_client_auth#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20HostnameCertificateDeleteResponse%20%3E%20(schema)>), error)

DELETE/zones/{zone\_id}/origin\_tls\_client\_auth/hostnames/certificates/{certificate\_id}

##### ModelsExpand Collapse

<details>

<summary>

type Certificate struct{…}

</summary>

ID stringOptional

Certificate identifier tag.

maxLength36

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20id">Link to this property</a>

Certificate stringOptional

The hostname certificate.

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20certificate">Link to this property</a>

ExpiresOn TimeOptional

The date when the certificate expires.

formatdate-time

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%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)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20issuer">Link to this property</a>

SerialNumber stringOptional

The serial number on the uploaded certificate.

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%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)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20signature">Link to this property</a>

<details>

<summary>

Status CertificateStatusOptional

Status of the certificate or the association.

</summary>

One of the following:

const CertificateStatusInitializing CertificateStatus = "initializing"

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const CertificateStatusPendingDeployment CertificateStatus = "pending\_deployment"

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

const CertificateStatusPendingDeletion CertificateStatus = "pending\_deletion"

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%202">Link to this property</a>

const CertificateStatusActive CertificateStatus = "active"

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%203">Link to this property</a>

const CertificateStatusDeleted CertificateStatus = "deleted"

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%204">Link to this property</a>

const CertificateStatusDeploymentTimedOut CertificateStatus = "deployment\_timed\_out"

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%205">Link to this property</a>

const CertificateStatusDeletionTimedOut CertificateStatus = "deletion\_timed\_out"

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20status%20%3E%20(member)%206">Link to this property</a>

</details>

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20status">Link to this property</a>

UploadedOn TimeOptional

The time when the certificate was uploaded.

formatdate-time

<a href="#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)%20%3E%20(property)%20uploaded_on">Link to this property</a>

</details>

[Link to this property](<#(resource)%20origin_tls_client_auth.hostname_certificates%20%3E%20(model)%20certificate%20%3E%20(schema)>)