---
title: Certificate Authorities
---

[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**

# Certificate Authorities

#### Certificate AuthoritiesHostname Associations

##### [List Hostname Associations](https://developers.cloudflare.com/api/go/resources/certificate_authorities/subresources/hostname_associations/methods/get)

client.CertificateAuthorities.HostnameAssociations.Get(ctx, params) (\*[HostnameAssociationGetResponse](<https://developers.cloudflare.com/api/go/resources/certificate_authorities#(resource)%20certificate_authorities.hostname_associations%20%3E%20(model)%20HostnameAssociationGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/certificate\_authorities/hostname\_associations

##### [Replace Hostname Associations](https://developers.cloudflare.com/api/go/resources/certificate_authorities/subresources/hostname_associations/methods/update)

client.CertificateAuthorities.HostnameAssociations.Update(ctx, params) (\*[HostnameAssociationUpdateResponse](<https://developers.cloudflare.com/api/go/resources/certificate_authorities#(resource)%20certificate_authorities.hostname_associations%20%3E%20(model)%20HostnameAssociationUpdateResponse%20%3E%20(schema)>), error)

PUT/zones/{zone\_id}/certificate\_authorities/hostname\_associations

##### ModelsExpand Collapse

<details>

<summary>

type TLSHostnameAssociation struct{…}

</summary>

Hostnames \[]stringOptional

<a href="#(resource)%20certificate_authorities.hostname_associations%20%3E%20(model)%20tls_hostname_association%20%3E%20(schema)%20%3E%20(property)%20hostnames">Link to this property</a>

MTLSCertificateID stringOptional

The UUID for a certificate that was uploaded to the mTLS Certificate Management endpoint. If no mtls\_certificate\_id is given, the hostnames will be associated to your active Cloudflare Managed CA.

maxLength36

minLength36

<a href="#(resource)%20certificate_authorities.hostname_associations%20%3E%20(model)%20tls_hostname_association%20%3E%20(schema)%20%3E%20(property)%20mtls_certificate_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20certificate_authorities.hostname_associations%20%3E%20(model)%20tls_hostname_association%20%3E%20(schema)>)