Expand description

use_rustls 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

Functions

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