1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
//! TLS certificates for Weirdnet hosts.
//!
//! - [`acme`]: certificates from an ACME CA (Let's Encrypt or any RFC 8555 directory) over
//! [instant-acme](https://docs.rs/instant-acme), with TLS-ALPN-01, HTTP-01 and DNS-01, several
//! names per certificate, and the account kept in a [`CertStore`].
//! - [`challenge`]: the HTTP-01 token board and listener, a TLS-ALPN-01 challenge-only
//! listener, and DNS-01 publishers (a hook command,
//! a manual prompt, and [grindvakt-core](https://docs.rs/grindvakt-core) providers with the
//! `grindvakt` feature).
//! - [`store`]: the [`CertStore`] trait, a file store (files 0600), a memory store, and with the
//! `storage` feature a store in an encrypted weirdnet-storage database; [`store::import`]
//! moves an app's earlier files in.
//! - [`resolver`]: a rustls SNI [`Resolver`] with per-name hot swap, source order user, ACME,
//! self-signed, pinned certificates for internal names, and the TLS-ALPN-01 answers.
//! - [`renew`]: when to renew (ACME Renewal Information, else two thirds of the lifetime),
//! failure backoff from 1 hour to 1 day, a guard on forced renewals, a typed [`Status`], and
//! an offline [`Schedule`] read from the store ([`acme::schedule`]).
//! - [`testing`] (feature `testing`): a mock ACME CA that validates the real challenge answers.
//!
//! The crate never serves plain HTTP in place of HTTPS: when an order fails, the resolver keeps
//! serving the previous certificate (or the self-signed one), and the HTTP-01 listener answers
//! only challenge tokens.
//!
//! Pick a crypto provider with the `ring` (default) or `aws-lc-rs` feature.
compile_error!;
pub use ;
pub use ;
pub use ;
pub use ;
pub use instant_acme;
pub use ;
pub use ;
pub use rustls;
pub use ;
/// The ALPN protocol of TLS-ALPN-01 validation (RFC 8737).
pub const ACME_TLS_ALPN: & = b"acme-tls/1";
/// The rustls crypto provider picked by the features: aws-lc-rs when on, else ring.