Struct CsrOrder

Source
pub struct CsrOrder<P: Persist> { /* private fields */ }
Expand description

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 key (from which a public key is derived). This library provides [functions to create private keys], 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

Implementations§

Source§

impl<P: Persist> CsrOrder<P>

Source

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

Finalize the order by providing a private key 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.

Source

pub fn finalize_pkey( self, private_key: PKey<Private>, delay_millis: u64, ) -> Result<CertOrder<P>>

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.

Source

pub fn api_order(&self) -> &ApiOrder

Access the underlying JSON object for debugging.

Auto Trait Implementations§

§

impl<P> Freeze for CsrOrder<P>

§

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

§

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

§

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

§

impl<P> Unpin for CsrOrder<P>

§

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

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T