ocsp-stapler
OCSP stapler for Rustls.
- Standalone
Clientthat can be used separately StaplerwrapsArc<dyn ResolvesServerCert>trait object and automatically staples all certificates provided by it
Stapler::new() spawns background worker using tokio::spawn so it must be executed in the Tokio context.
Example
// Inner service that provides certificates to Rustls, can be anything
let inner: = ...;
let stapler = new;
let server_config = builder
.with_no_client_auth
.with_cert_resolver;
// Then you can use server_config wherever applicable
// Stop the background worker to clean up
stapler.stop.await;