[][src]Struct acme_lib::order::CsrOrder

pub struct CsrOrder<P: Persist> { /* fields omitted */ }

An order that is ready for a CSR submission.

To submit the CSR is called "finalizing" the order.

To finalize, the user supplies a private and public key pair. This library provides functions to create key pairs, but the user can opt for creating them in some other way.

This library makes no attempt at validating which key algorithms are used. Unsupported algorithms will show as an error when finalizing the order. It is up to the ACME API provider to decide which key algorithms to support.

Right now Let's Encrypt supports:

  • RSA keys from 2048 to 4096 bits in length
  • P-256 and P-384 ECDSA keys

Methods

impl<P: Persist> CsrOrder<P>[src]

pub fn finalize(
    self,
    private_key_pem: &str,
    public_key_pem: &str,
    delay_millis: u64
) -> Result<CertOrder<P>>
[src]

Finalize the order by providing a private and public key pair as PEM.

Once the CSR has been submitted, the order goes into a processing status, where we must poll until the status changes. The delay_millis is the amount of time to wait between each poll attempt.

This is a convenience wrapper that in turn calls the lower level finalize_pkey.

pub fn finalize_pkey(
    self,
    private_key: PKey<Private>,
    public_key: PKey<Public>,
    delay_millis: u64
) -> Result<CertOrder<P>>
[src]

Lower level finalize call that works directly with the openssl crate structures.

Creates the CSR for the domains in the order and submit it to the ACME API.

Once the CSR has been submitted, the order goes into a processing status, where we must poll until the status changes. The delay_millis is the amount of time to wait between each poll attempt.

pub fn api_order(&self) -> &ApiOrder[src]

Access the underlying JSON object for debugging.

Auto Trait Implementations

impl<P> Send for CsrOrder<P> where
    P: Sync

impl<P> Unpin for CsrOrder<P>

impl<P> Sync for CsrOrder<P> where
    P: Sync

impl<P> UnwindSafe for CsrOrder<P> where
    P: RefUnwindSafe

impl<P> RefUnwindSafe for CsrOrder<P> where
    P: RefUnwindSafe

Blanket Implementations

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]