1 //! ACME protocol helper.
3 //! This is supposed to implement the low level parts of the ACME protocol, providing an [`Account`]
4 //! and some other helper types which allow interacting with an ACME server by implementing methods
5 //! which create [`Request`]s the user can then combine with a nonce and send to the the ACME
6 //! server using whatever http client they choose.
8 //! This is a rather low level crate, and while it provides an optional synchronous client using
9 //! curl (for simplicity), users should have basic understanding of the ACME API in order to
10 //! implement a client using this.
12 //! The [`Account`] helper supports RSA and ECC keys and provides most of the API methods.
21 pub mod authorization
;
27 pub use account
::Account
;
28 pub use authorization
::{Authorization, Challenge}
;
29 pub use directory
::Directory
;
31 pub use order
::{NewOrder, Order}
;
32 pub use request
::{ErrorResponse, Request}
;
34 /// Header name for nonces.
35 pub const REPLAY_NONCE
: &str = "Replay-Nonce";
37 /// Header name for locations.
38 pub const LOCATION
: &str = "Location";
40 #[cfg(feature = "client")]
42 #[cfg(feature = "client")]
43 pub use client
::Client
;