pub struct TlsClientConfig {
pub client_cert: Option<String>,
pub client_key: Option<String>,
pub client_identity_pkcs12: Option<String>,
pub pkcs12_password: Option<String>,
pub min_version: Option<String>,
}Expand description
Client-certificate (mutual TLS) configuration for the HTTP sources.
Supply either a PEM certificate + key pair (client_cert + client_key)
or a PKCS#12 identity file (client_identity_pkcs12 [+ pkcs12_password]).
PEM values may be inline or pulled in with ${file:…} / ${secret:…} /
${vault:…}; the PKCS#12 value is a path to a .p12/.pfx file (its binary
content can’t be embedded in a text config).
Fields§
§client_cert: Option<String>PEM-encoded client certificate chain. Pair with client_key.
client_key: Option<String>PEM-encoded PKCS#8 private key. Pair with client_cert.
client_identity_pkcs12: Option<String>Path to a PKCS#12 (.p12/.pfx) identity file — an alternative to the
PEM pair.
pkcs12_password: Option<String>Password for the PKCS#12 file (omit or empty if the file is unencrypted).
min_version: Option<String>Minimum negotiated TLS version: "1.2" or "1.3". Defaults to the
TLS backend’s own minimum when unset.
Implementations§
Source§impl TlsClientConfig
impl TlsClientConfig
Sourcepub fn validate(&self) -> Result<(), FaucetError>
pub fn validate(&self) -> Result<(), FaucetError>
Validate the shape before any network setup: exactly one identity source
(PEM pair XOR PKCS#12), no half-specified PEM pair, and a recognized
min_version. Cheap and dependency-free — safe to call in an infallible
connector’s registry-side validation.
Trait Implementations§
Source§impl Clone for TlsClientConfig
impl Clone for TlsClientConfig
Source§fn clone(&self) -> TlsClientConfig
fn clone(&self) -> TlsClientConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TlsClientConfig
impl Debug for TlsClientConfig
Source§impl Default for TlsClientConfig
impl Default for TlsClientConfig
Source§fn default() -> TlsClientConfig
fn default() -> TlsClientConfig
Source§impl<'de> Deserialize<'de> for TlsClientConfig
impl<'de> Deserialize<'de> for TlsClientConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TlsClientConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TlsClientConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for TlsClientConfig
Source§impl JsonSchema for TlsClientConfig
impl JsonSchema for TlsClientConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for TlsClientConfig
impl PartialEq for TlsClientConfig
Source§impl Serialize for TlsClientConfig
impl Serialize for TlsClientConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for TlsClientConfig
Auto Trait Implementations§
impl Freeze for TlsClientConfig
impl RefUnwindSafe for TlsClientConfig
impl Send for TlsClientConfig
impl Sync for TlsClientConfig
impl Unpin for TlsClientConfig
impl UnsafeUnpin for TlsClientConfig
impl UnwindSafe for TlsClientConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.