Skip to content
Start here

Origin CA Certificates

List Certificates
client.OriginCACertificates.List(ctx, query) (*V4PagePaginationArray[OriginCACertificate], error)
GET/certificates
Get Certificate
client.OriginCACertificates.Get(ctx, certificateID) (*OriginCACertificate, error)
GET/certificates/{certificate_id}
Create Certificate
client.OriginCACertificates.New(ctx, body) (*OriginCACertificate, error)
POST/certificates
Revoke Certificate
client.OriginCACertificates.Delete(ctx, certificateID) (*OriginCACertificateDeleteResponse, error)
DELETE/certificates/{certificate_id}
ModelsExpand Collapse
type OriginCACertificate struct{…}
ID stringOptional

The x509 serial number of the Origin CA certificate.

Certificate stringOptional

The Origin CA certificate. Will be newline-encoded.

Csr stringOptional

The Certificate Signing Request (CSR). Must be newline-encoded.

ExpiresOn stringOptional

When the certificate will expire.

Hostnames []stringOptional

Array of hostnames or wildcard names bound to the certificate. Hostnames must be fully qualified domain names (FQDNs) belonging to zones on your account (e.g., example.com or sub.example.com). Wildcards are supported only as a *. prefix for a single level (e.g., *.example.com). Double wildcards (*.*.example.com) and interior wildcards (foo.*.example.com) are not allowed. The wildcard suffix must be a multi-label domain (*.example.com is valid, but *.com is not). Unicode/IDN hostnames are accepted and automatically converted to punycode.

RequestType CertificateRequestTypeOptional

Signature type desired on certificate (“origin-rsa” (rsa), “origin-ecc” (ecdsa), or “keyless-certificate” (for Keyless SSL servers).

RequestedValidity OriginCACertificateRequestedValidityOptional

The number of days for which the certificate was requested to be valid. Only returned in the Create Certificate response, where it echoes the requested value. Not returned when getting or listing certificates.

One of the following:
const OriginCACertificateRequestedValidity7 OriginCACertificateRequestedValidity = 7
const OriginCACertificateRequestedValidity30 OriginCACertificateRequestedValidity = 30
const OriginCACertificateRequestedValidity90 OriginCACertificateRequestedValidity = 90
const OriginCACertificateRequestedValidity365 OriginCACertificateRequestedValidity = 365
const OriginCACertificateRequestedValidity730 OriginCACertificateRequestedValidity = 730
const OriginCACertificateRequestedValidity1095 OriginCACertificateRequestedValidity = 1095
const OriginCACertificateRequestedValidity5475 OriginCACertificateRequestedValidity = 5475
RevokedAt TimeOptional

When the certificate was revoked.

formatdate-time