Skip to main content

Crate dubbo_rs_tls

Crate dubbo_rs_tls 

Source
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§

ClientTlsConfig
Client-side TLS configuration.
ServerTlsConfig
Server-side TLS configuration.