Module rustls_helper

Source
Available on crate features rustls_ring or rustls_aws_lc_rs only.
Expand description

utilities to help with rustls.

use async_acme::{
    acme::LETS_ENCRYPT_STAGING_DIRECTORY,
    rustls_helper::order,
};
async fn get_new_cert(){
    let cache = "./cachedir/".to_string();
    let new_cert = order(
        |_sni, _cert| Ok(()),
        LETS_ENCRYPT_STAGING_DIRECTORY,
        &vec!["example.com".to_string()],
        Some(&cache),
        &vec!["mailto:admin@example.com".to_string()],
    )
    .await
    .unwrap();
}

Enums§

OrderError

Functions§

drive_order
Obtain a signed certificate for the DNS domains using account.
duration_until_renewal_attempt
get the duration until the next ACME refresh should be done
order
Obtain a signed certificate from the ACME provider at directory_url for the DNS domains.