Expand description
TLS and ACME certificate management.
Structs§
- Acme
Challenge Response - A live HTTP-01 challenge response.
- Acme
Issuer - Issues certificates for individual domains over ACME HTTP-01.
- Certificate
- Certificate and key pair.
- Certificate
Facts - What a certificate turned out to be.
- Certificate
Store - Certificate store with database metadata and file caching.
- SniCert
Resolver - Resolves a certificate from the store by the SNI name of the handshake.
Constants§
- ALPN_
PROTOCOLS - ALPN protocols offered, in preference order.
- LETS_
ENCRYPT_ PRODUCTION - Let’s Encrypt’s production directory.
- LETS_
ENCRYPT_ STAGING - Let’s Encrypt’s staging directory, which issues untrusted certificates against far looser rate limits.
Functions§
- build_
server_ config - Build a rustls
ServerConfigfrom PEM bytes, with ALPN configured. - build_
server_ config_ with_ resolver - Build a
ServerConfigthat picks its certificate per handshake. - expiry_
of - The expiry of a chain, or
Noneif it cannot be read. - facts
- Read the expiry and the covered names out of a PEM chain.
- find_
challenge - Look up a pending HTTP-01 challenge response by token.
- load_
server_ config - Load a certificate and key from disk and build a
ServerConfig. - validate_
for_ domain - Check a PEM certificate chain and key, and report what they cover.