pub struct TlsConfig {
pub client_cert_pem: Vec<u8>,
pub client_key_pem: Vec<u8>,
pub ca_cert_pem: Option<Vec<u8>>,
}Expand description
Configuration for mutual TLS (mTLS) client authentication.
Holds the raw PEM bytes for the client certificate, private key, and an optional CA certificate used to verify the server.
Fields§
§client_cert_pem: Vec<u8>PEM-encoded client certificate.
client_key_pem: Vec<u8>PEM-encoded client private key.
ca_cert_pem: Option<Vec<u8>>Optional PEM-encoded CA certificate for server verification.
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 UnsafeUnpin 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