[][src]Struct acme2_slim::Account

pub struct Account { /* fields omitted */ }

Implementations

impl Account[src]

pub async fn create_order<'a, T: AsRef<str> + Debug + Clone + Display, '_>(
    &'a mut self,
    domains: &'_ [T]
) -> Result<CreateOrderResponse>
[src]

Creates a new identifier authorization object for domain

pub fn certificate_signer<'a>(&'a self) -> CertificateSigner<'a>[src]

Creates a new CertificateSigner helper to sign a certificate for list of domains.

domains must be list of the domain names you want to sign a certificate for. Currently there is no way to retrieve subject alt names from a X509Req.

You can additionally use your own private key and CSR. See CertificateSigner for details.

pub async fn revoke_certificate_from_file<P: AsRef<Path>, '_>(
    &'_ mut self,
    path: P
) -> Result<()>
[src]

Revokes a signed certificate from pem formatted file

pub async fn revoke_certificate<'_, '_>(
    &'_ mut self,
    cert: &'_ X509
) -> Result<()>
[src]

Revokes a signed certificate

pub async fn write_private_key<W: AsyncWrite, '_, '_>(
    &'_ self,
    writer: Pin<&'_ mut W>
) -> Result<()>
[src]

Writes account private key to a writer

pub async fn save_private_key<P: AsRef<Path>, '_>(
    &'_ self,
    path: P
) -> Result<()>
[src]

Saves account private key to a file

pub fn pkey(&self) -> &PKey<Private>[src]

Returns a reference to account private key

pub fn directory(&self) -> &Directory[src]

Returns a reference to directory used to create account

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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,