Skip to main content

Module tls

Module tls 

Expand description

TLS and mutual TLS (mTLS) support for the gateway server.

Thin adapter over the shared zeroclaw_tls crate: it maps the gateway’s GatewayTlsConfig onto the transport-neutral zeroclaw_tls::ServerConfigParams and delegates construction. The reusable verifier / certificate-pinning / PEM-loading logic lives in zeroclaw-tls so it can also be consumed by zeroclaw-runtime without an upward dependency on the gateway.

Functions§

build_server_config
Build a [rustls::ServerConfig] from the gateway TLS configuration.
build_tls_acceptor
Build a [TlsAcceptor] from the gateway TLS configuration.