cloudflare
ModuleCloudflare for SaaS custom hostnames.
Contents
use utopia_cdn::certificates::cloudflare::Cloudflare;Rust
pub struct Cloudflare<C = DefaultClient>Certificates as Cloudflare for SaaS custom hostnames: issuing creates the hostname with an HTTP-validated DV certificate, which Cloudflare manages from then on; a hostname that already exists is left as it is.
Cloudflare reports no status (Provider::certificate_status fails
with Error::UnsupportedOperation); a renewal is required when the
hostname is gone.
Rust
use utopia_cdn::certificates::{Cloudflare, Provider};
let cloudflare = Cloudflare::new("zone-id", "api-token");
cloudflare.issue_certificate("shop", "shop.example.com", None).await?;Compiles in CI; needs a running service to execute.