Skip to content
Start here

Certificates

List mTLS certificates
client.ZeroTrust.Access.Certificates.List(ctx, params) (*V4PagePaginationArray[Certificate], error)
GET/{accounts_or_zones}/{account_or_zone_id}/access/certificates
Get an mTLS certificate
client.ZeroTrust.Access.Certificates.Get(ctx, certificateID, query) (*Certificate, error)
GET/{accounts_or_zones}/{account_or_zone_id}/access/certificates/{certificate_id}
Add an mTLS certificate
client.ZeroTrust.Access.Certificates.New(ctx, params) (*Certificate, error)
POST/{accounts_or_zones}/{account_or_zone_id}/access/certificates
Update an mTLS certificate
client.ZeroTrust.Access.Certificates.Update(ctx, certificateID, params) (*Certificate, error)
PUT/{accounts_or_zones}/{account_or_zone_id}/access/certificates/{certificate_id}
Delete an mTLS certificate
client.ZeroTrust.Access.Certificates.Delete(ctx, certificateID, body) (*AccessCertificateDeleteResponse, error)
DELETE/{accounts_or_zones}/{account_or_zone_id}/access/certificates/{certificate_id}
ModelsExpand Collapse
type AssociatedHostnames string

A fully-qualified domain name (FQDN).

type Certificate struct{…}
ID stringoptional

The ID of the application that will use this certificate.

AssociatedHostnames []AssociatedHostnamesoptional

The hostnames of the applications that will use this certificate.

ExpiresOn Timeoptional
formatdate-time
Fingerprint stringoptional

The MD5 fingerprint of the certificate.

Name stringoptional

The name of the certificate.

CertificatesSettings

List all mTLS hostname settings
client.ZeroTrust.Access.Certificates.Settings.Get(ctx, query) (*SinglePage[CertificateSettings], error)
GET/{accounts_or_zones}/{account_or_zone_id}/access/certificates/settings
Update an mTLS certificate's hostname settings
client.ZeroTrust.Access.Certificates.Settings.Update(ctx, params) (*SinglePage[CertificateSettings], error)
PUT/{accounts_or_zones}/{account_or_zone_id}/access/certificates/settings
ModelsExpand Collapse
type CertificateSettings struct{…}
ChinaNetwork bool

Request client certificates for this hostname in China. Can only be set to true if this zone is china network enabled.

ClientCertificateForwarding bool

Client Certificate Forwarding is a feature that takes the client cert provided by the eyeball to the edge, and forwards it to the origin as a HTTP header to allow logging on the origin.

Hostname string

The hostname that these settings apply to.