Trait tide_acme::TideRustlsExt
source · [−]pub trait TideRustlsExt {
fn acme<EC: 'static + Debug, EA: 'static + Debug>(
self,
config: AcmeConfig<EC, EA>
) -> Self;
}
Expand description
Extension trait for tide_rustls::TlsListenerBuilder
With this trait imported, TlsListenerBuilder
will have an acme
method to set up a custom
TLS acceptor that answers ACME tls-alpn-01 challenges.
Required Methods
fn acme<EC: 'static + Debug, EA: 'static + Debug>(
self,
config: AcmeConfig<EC, EA>
) -> Self
fn acme<EC: 'static + Debug, EA: 'static + Debug>(
self,
config: AcmeConfig<EC, EA>
) -> Self
Set up a custom TLS acceptor that answers ACME tls-alpn-01 challenges, using the specified configuration.
This creates an AcmeTlsAcceptor
, which will start a background task to manage
certificates via ACME.