CsrOrder

Struct CsrOrder 

Source
pub struct CsrOrder { /* 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 CsrOrder

Source

pub async fn finalize( self, private_key_pem: &str, delay: Duration, ) -> Result<CertOrder>

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 is the amount of time to wait between each poll attempt.

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

Source

pub async fn finalize_signing_key( self, signing_key: SigningKey, delay: Duration, ) -> Result<CertOrder>

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 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§

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> Same for T

Source§

type Output = T

Should always be Self
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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