fastly_tls
ModuleFastly TLS subscriptions and activations.
Contents
use utopia_cdn::certificates::fastly_tls::FastlyTls;Rust
pub struct FastlyTls<C = DefaultClient>Certificates as Fastly TLS subscriptions, issued by a certificate
authority Fastly works with (certainly by default).
With a TLS configuration ID, an issued certificate is also activated on every hostname of the subscription (so the hostname stops serving Fastly's shared certificate), and a renewal moves the activations to the new certificate. Without one, Fastly's domain management activates it.
While the certificate authority waits for the domain owner to publish a
DNS record, Provider::certificate_status fails with
Error::Certificate, carrying the records to create.
Rust
use utopia_cdn::certificates::{FastlyTls, Provider};
let tls = FastlyTls::new("api-token", "tls-configuration-id");
let renew_after = tls.issue_certificate("shop", "shop.example.com", None).await?;Compiles in CI; needs a running service to execute.