Struct async_acme::acme::Account
source · pub struct Account { /* private fields */ }Expand description
An Acout at an ACME provider. Used to query certificates and challanges
load_or_createyour Account- place a
new_orderfor your domains check_authfor a single domain, if valid move to 6.- use
tls_alpn_01to get a certificate for it trigger_challengeon that domain- repeat 3. - 5. for all other domains
send_csrfor your cert …- … and finally
obtain_certificate
Implementations§
source§impl Account
impl Account
sourcepub async fn load_or_create<'a, C, S, I>(
directory: Directory,
cache: Option<&C>,
contact: I
) -> Result<Self, AcmeError>where
C: AcmeCache,
S: AsRef<str> + 'a,
I: IntoIterator<Item = &'a S>,
pub async fn load_or_create<'a, C, S, I>( directory: Directory, cache: Option<&C>, contact: I ) -> Result<Self, AcmeError>where C: AcmeCache, S: AsRef<str> + 'a, I: IntoIterator<Item = &'a S>,
Create or load a cached Account for ACME provider at directory.
Provide your email in contact in the form mailto:admin@example.com to receive warnings regarding your certificate.
Set a cache to remember/load your account.
sourcepub async fn new_order(&self, domains: Vec<String>) -> Result<Order, AcmeError>
pub async fn new_order(&self, domains: Vec<String>) -> Result<Order, AcmeError>
send a new order for the DNS identifiers in domains
sourcepub async fn check_auth(&self, url: impl AsRef<str>) -> Result<Auth, AcmeError>
pub async fn check_auth(&self, url: impl AsRef<str>) -> Result<Auth, AcmeError>
check the authentication status for a particular challange
sourcepub async fn trigger_challenge(
&self,
url: impl AsRef<str>
) -> Result<(), AcmeError>
pub async fn trigger_challenge( &self, url: impl AsRef<str> ) -> Result<(), AcmeError>
trigger a particular challange
sourcepub async fn send_csr(
&self,
url: impl AsRef<str>,
csr: Vec<u8>
) -> Result<Order, AcmeError>
pub async fn send_csr( &self, url: impl AsRef<str>, csr: Vec<u8> ) -> Result<Order, AcmeError>
request a certificate to be signed
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more