RustyAcme

Struct RustyAcme 

Source
pub struct RustyAcme;

Implementations§

Source§

impl RustyAcme

Source

pub fn new_account_request( directory: &AcmeDirectory, alg: JwsAlgorithm, kp: &Pem, previous_nonce: String, ) -> RustyAcmeResult<AcmeJws>

  1. Create a new acme account see RFC 8555 Section 7.3
Source

pub fn new_account_response(response: Value) -> RustyAcmeResult<AcmeAccount>

  1. parse the response from POST /acme/new-account see RFC 8555 Section 7.3
Source§

impl RustyAcme

Source

pub fn new_authz_request( url: &Url, account: &AcmeAccount, alg: JwsAlgorithm, kp: &Pem, previous_nonce: String, ) -> RustyAcmeResult<AcmeJws>

create authorizations see RFC 8555 Section 7.5

Source

pub fn new_authz_response(response: Value) -> RustyAcmeResult<AcmeAuthz>

parse the response from POST /acme/authz/{authz_id} RFC 8555 Section 7.5

Source§

impl RustyAcme

Source

pub fn certificate_req( finalize: AcmeFinalize, account: AcmeAccount, alg: JwsAlgorithm, kp: &Pem, previous_nonce: String, ) -> RustyAcmeResult<AcmeJws>

For fetching the generated certificate see RFC 8555 Section 7.4.2

Source

pub fn certificate_response( response: String, order: AcmeOrder, hash_alg: HashAlgorithm, env: Option<&PkiEnvironment>, ) -> RustyAcmeResult<Vec<Vec<u8>>>

Source§

impl RustyAcme

Source

pub fn dpop_chall_request( access_token: String, dpop_chall: AcmeChallenge, account: &AcmeAccount, alg: JwsAlgorithm, kp: &Pem, previous_nonce: String, ) -> RustyAcmeResult<AcmeJws>

client id challenge request to POST /acme/challenge/{token} see RFC 8555 Section 7.5.1

Source

pub fn oidc_chall_request( id_token: String, oidc_chall: AcmeChallenge, account: &AcmeAccount, alg: JwsAlgorithm, kp: &Pem, previous_nonce: String, ) -> RustyAcmeResult<AcmeJws>

oidc challenge request to POST /acme/challenge/{token} see RFC 8555 Section 7.5.1

Source

pub fn new_chall_response(response: Value) -> RustyAcmeResult<AcmeChallenge>

  1. parse the response from POST /acme/challenge/{token} RFC 8555 Section 7.5.1
Source§

impl RustyAcme

Source

pub fn acme_directory_response( response: Value, ) -> RustyAcmeResult<AcmeDirectory>

First, call the directory endpoint GET /acme/{provisioner_name}/directory. Then pass the response to this method to deserialize it see RFC 8555 Section 7.1.1

Source§

impl RustyAcme

Source

pub fn finalize_req( order: &AcmeOrder, account: &AcmeAccount, alg: JwsAlgorithm, acme_kp: &Pem, signing_kp: &Pem, previous_nonce: String, ) -> RustyAcmeResult<AcmeJws>

Source

pub fn finalize_response(response: Value) -> RustyAcmeResult<AcmeFinalize>

Source§

impl RustyAcme

Source

pub fn new_order_request( display_name: &str, client_id: ClientId, handle: &Handle, expiry: Duration, directory: &AcmeDirectory, account: &AcmeAccount, alg: JwsAlgorithm, kp: &Pem, previous_nonce: String, ) -> RustyAcmeResult<AcmeJws>

create a new order see RFC 8555 Section 7.4.

Source

pub fn new_order_response(response: Value) -> RustyAcmeResult<AcmeOrder>

parse response from order creation RFC 8555 Section 7.4

Source§

impl RustyAcme

Source

pub fn check_order_request( order_url: Url, account: &AcmeAccount, alg: JwsAlgorithm, kp: &Pem, previous_nonce: String, ) -> RustyAcmeResult<AcmeJws>

check an order status until it becomes ready see RFC 8555 Section 7.4

Source

pub fn check_order_response(response: Value) -> RustyAcmeResult<AcmeOrder>

parse response from order check see RFC 8555 Section 7.4

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

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

§

fn vzip(self) -> V

§

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

§

impl<T> MaybeSendSync for T