HostnameCertificate

Properties

PropertyTypeDescription
certificates_id string (snowflake) Required The certificate's ID. It stays the same through every reissue and renewal.
certificates_requested_names string Required Requested DNS names for a certificate from an external issuer, one per line (the apex domain, subdomains, or wildcards such as *.acme.com). Searches match substrings.
certificates_state one of: 1, 2, 3, 4 Required Issuance state of a certificate from an external issuer: 1 (ordering), 2 (issued), 3 (failed; see error for details), or 4 (stopped).
state string Required Current certificate state: ordering, issued, failed, or stopped.
certificates_error string, or null Optional Error message explaining why the last order failed, or null if it succeeded.
certificates_current_issuance_id string (snowflake), or null Optional ID of the latest issuance returned on download, or null until the certificate is first issued.
issuances_expires_at integer (int64), or null Optional When the certificate expires (NotAfter), in seconds since the Unix epoch. For a certificate request, null until a certificate has been issued.
certificates_order_failing_since integer (int64), or null Required When ordering or renewing the certificate from its public issuer first failed, counting only attempts since its current issuance or since it was requested. This field is empty when no order or renewal is failing.
certificates_updated_at integer (int64) Required When the certificate record was last updated, in seconds since the Unix epoch.

Used by

MethodPathSummary
POST /organizations/{organizationId}/external_issuers/{issuer}/certificates Request a certificate from an organization's external issuer account for a hostname served by ZFrame. ZanPKI generates the key, orders the certificate, completes HTTP validation, stores and renews it, and serves it on every node. Restricted to ZanHosting's own site organizations.
GET /organizations/{organizationId}/external_issuers/{issuer}/certificates/{certificateId} Return the current status of a hostname certificate: ordering, issued, failed (with error details), or stopped, along with the current issuance's expiration time. Poll this endpoint after requesting a certificate.
DELETE /organizations/{organizationId}/external_issuers/{issuer}/certificates/{certificateId} Stop managing a hostname certificate (for example, when the hostname is removed from a site). It will no longer be renewed or served by any node.

All documentation