pub fn build_tls_acceptor(
config: &TlsConfig,
) -> Result<TlsAcceptor, KipukaError>Expand description
Build a TlsAcceptor from the Kipuka TLS configuration.
The resulting acceptor can be used with tokio_rustls to wrap a
TCP listener.
When OCSP stapling is enabled, the returned acceptor includes a
CertifiedKey that carries the stapled OCSP response. The caller
should also spawn the OcspStapler background task to keep the
stapled response fresh.