[][src]Struct acme_micro::Account

pub struct Account { /* fields omitted */ }

Account with an ACME provider.

Accounts are created using Directory::account and consist of a contact email address and a private key for signing requests to the ACME API.

acme-lib uses elliptic curve P-256 for accessing the account. This does not affect which key algorithms that can be used for the issued certificates.

The advantage of using elliptic curve cryptography is that the signed requests against the ACME lib are kept small and that the public key can be derived from the private.

Methods

impl Account[src]

pub fn acme_private_key_pem(&self) -> String[src]

Private key for this account.

The key is an elliptic curve private key.

pub fn new_order(
    &self,
    primary_name: &str,
    alt_names: &[&str]
) -> Result<NewOrder>
[src]

Create a new order to issue a certificate for this account.

Each order has a required primary_name (which will be set as the certificates CN) and a variable number of alt_names.

This library doesn't constrain the number of alt_names, but it is limited by the ACME API provider. Let's Encrypt sets a max of 100 names per certificate.

Every call creates a new order with the ACME API provider, even when the domain names supplied are exactly the same.

pub fn revoke_certificate(
    &self,
    cert: &Certificate,
    reason: RevocationReason
) -> Result<()>
[src]

Revoke a certificate for the reason given.

pub fn api_account(&self) -> &ApiAccount[src]

Access the underlying JSON object for debugging.

Trait Implementations

impl Clone for Account[src]

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.