pub struct Account { /* private fields */ }
Expand description
An Acout at an ACME provider. Used to query certificates and challanges
load_or_create
your Account- place a
new_order
for your domains check_auth
for a single domain, if valid move to 6.- use
tls_alpn_01
to get a certificate for it trigger_challenge
on that domain- repeat 3. - 5. for all other domains
send_csr
for 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>
pub async fn load_or_create<'a, C, S, I>( directory: Directory, cache: Option<&C>, contact: I, ) -> Result<Self, AcmeError>
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 Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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