Expand description
Server-side TLS (HTTPS) for the Streamable HTTP transport.
TLS is opt-in: the HTTP transport only serves over TLS when both a
--tls-cert and --tls-key are configured, otherwise it stays plaintext
(the default). Backed by rustls with the ring crypto provider — no
OpenSSL/aws-lc.
Functions§
- ensure_
crypto_ provider - Install the rustls
ringcrypto provider as the process default. - server_
config - Build an axum-server rustls config from a PEM certificate chain and private
key. Installs the
ringprovider on first call. The returnedio::Errormaps ontoMCSError::IoError.