pub fn server_tls_acceptor_config(
plane: &str,
cert: Option<&Path>,
key: Option<&Path>,
client_ca: Option<&Path>,
) -> Result<Option<ServerConfig>>Expand description
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").
Returns Ok(None) for the plaintext case and fails closed on partial or
invalid configuration (cert without key, a client CA without a server
cert/key). When a client CA is supplied, the resulting config enforces mTLS.