Skip to main content

Module tls_source

Module tls_source 

Source
Expand description

Shared ServerTlsSource — builds a validated rustls::ServerConfig from PEM cert/key files, optionally with mTLS client CA verification.

This deduplicates ~40 lines of PEM parsing that each of gRPC, HTTP, and WS components implement separately. The individual components still own ALPN configuration — build_server_config intentionally leaves ALPN empty so the caller can set it after construction.

Structs§

ServerTlsSource
File-based TLS source for rustls server-side configuration.
TlsReloadRegistry
Process-global singleton registry of TLS reload handlers.

Traits§

TlsReloadHandler
Implemented by each TLS-terminating component. Registered with TlsReloadRegistry::global() when a server first spawns.