Skip to main content

Module tls_utils

Module tls_utils 

Source
Expand description

Shared TLS utilities for the Dynamo runtime.

Provides helpers for loading PEM certificates and building rustls ServerConfig / ClientConfig objects for transport-layer security.

Functionsยง

client_tls_config
Build a rustls ClientConfig for outbound TLS connections.
handshake_timeout
TLS handshake timeout, configurable via DYN_TCP_TLS_HANDSHAKE_TIMEOUT_SECS (default: 3s).
server_tls_acceptor_config
Build a server ServerConfig for a TCP plane from optional cert/key/client-CA paths, with the validation and misconfiguration diagnostics shared by the request-plane and response-stream servers. plane labels the log lines (e.g. "TCP request plane" / "TCP server").
server_tls_config
Build a rustls ServerConfig from PEM certificate and key files.