pub struct TlsConfig {
pub cert_chain_path: PathBuf,
pub private_key_path: PathBuf,
pub client_ca_path: Option<PathBuf>,
pub require_client_cert: bool,
pub min_version: Option<String>,
}Expand description
Serializable TLS configuration from the config file.
Fields§
§cert_chain_path: PathBufPath to the server certificate chain (PEM).
private_key_path: PathBufPath to the server private key (PEM, PKCS#8, or PKCS#11 URI).
client_ca_path: Option<PathBuf>Optional path to trusted CA certificates for client verification (mTLS).
require_client_cert: boolWhether to require client certificates (mTLS).
min_version: Option<String>Minimum TLS version (default: TLS 1.2, per NIAP CA PP).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TlsConfig
impl<'de> Deserialize<'de> for TlsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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