pub struct TlsConfig {
pub client_cert_pem: Vec<u8>,
pub client_key_pem: Vec<u8>,
pub ca_cert_pem: Option<Vec<u8>>,
}Expand description
TLS configuration for mutual TLS (client certificate authentication).
Fields§
§client_cert_pem: Vec<u8>Client certificate in PEM format
client_key_pem: Vec<u8>Client private key in PEM format
ca_cert_pem: Option<Vec<u8>>Optional CA certificate for server verification (uses system certs if None)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TlsConfig
impl RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnwindSafe for TlsConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more