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§
Functions§
- drive_
order - Obtain a signed certificate for the DNS
domains
usingaccount
. - 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 DNSdomains
.