Expand description
TLS/mTLS support for dubbo-rs.
Provides server-side and client-side TLS configuration using rustls. Supports both one-way TLS (server certificate verification) and mutual TLS (mTLS) with client certificate authentication.
§Usage
§Server (TLS)
ⓘ
use dubbo_rs_tls::ServerTlsConfig;
let config = ServerTlsConfig::new()
.with_cert_chain("path/to/cert.pem")?
.with_private_key("path/to/key.pem")?
.build()?;§Client (TLS)
ⓘ
use dubbo_rs_tls::ClientTlsConfig;
let config = ClientTlsConfig::new()
.with_root_ca("path/to/ca.pem")?
.build()?;Structs§
- Client
TlsConfig - Client-side TLS configuration.
- Server
TlsConfig - Server-side TLS configuration.