pub struct TlsConfig {
pub client_key_pem: Option<String>,
pub client_cert_pem: Option<String>,
pub root_ca_pems: Vec<String>,
pub accept_invalid_certs: bool,
}Expand description
TLS configuration for the reqwest::Client.
Fields§
§client_key_pem: Option<String>PEM-encoded PKCS#8 private key for the client (mTLS identity).
client_cert_pem: Option<String>PEM-encoded X.509 certificate chain for the client (mTLS identity).
root_ca_pems: Vec<String>Additional PEM-encoded root CA certificates to trust (e.g. SM-PKI CA).
accept_invalid_certs: boolWhen true, accept any server certificate regardless of validity.
Testing only. Setting this in production is a security vulnerability.
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