Skip to main content

postrust_proxy/tls/
mod.rs

1//! TLS and ACME certificate management.
2
3mod cert_store;
4pub(crate) mod server;
5mod sni;
6mod validate;
7
8#[cfg(feature = "acme")]
9mod acme;
10
11pub use cert_store::{Certificate, CertificateStore};
12pub use server::{
13    build_server_config, build_server_config_with_resolver, load_server_config, ALPN_PROTOCOLS,
14};
15pub use sni::SniCertResolver;
16pub use validate::{expiry_of, facts, validate_for_domain, CertificateFacts};
17
18#[cfg(feature = "acme")]
19pub use acme::{
20    find_challenge, AcmeChallengeResponse, AcmeIssuer, LETS_ENCRYPT_PRODUCTION,
21    LETS_ENCRYPT_STAGING,
22};