Function order

Source
pub async fn order<C, F>(
    set_auth_key: F,
    directory_url: &str,
    domains: &[String],
    cache: Option<&C>,
    contact: &[String],
) -> Result<CertifiedKey, OrderError>
Available on crate features rustls_ring or rustls_aws_lc_rs only.
Expand description

Obtain a signed certificate from the ACME provider at directory_url for the DNS domains.

The secret for the challenge is passed as a ready to use certificate to set_auth_key(domain, certificate)?. This certificate has to be presented upon a TLS request with ACME ALPN and SNI for that domain.

Provide your email in contact in the form mailto:admin@example.com to receive warnings regarding your certificate. Set a cache to remember your account.