pub struct CaConfig {
pub cn: String,
pub validity_days: u32,
pub cert: Option<PathBuf>,
pub key: Option<PathBuf>,
}Expand description
CA certificate configuration.
By default, msbnet generates a self-signed P-256 EC CA on first use and
persists it to ~/.microsandbox/tls/. User-provided CA paths override
generation for corporate PKI integration.
Fields§
§cn: StringSubject CN for the generated CA certificate.
validity_days: u32Validity period in days for the generated CA certificate.
cert: Option<PathBuf>Path to a user-provided CA certificate (PEM). When set together with
key, msbnet uses these directly instead of generating a CA.
key: Option<PathBuf>Path to a user-provided CA private key (PEM).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CaConfig
impl<'de> Deserialize<'de> for CaConfig
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 CaConfig
impl RefUnwindSafe for CaConfig
impl Send for CaConfig
impl Sync for CaConfig
impl Unpin for CaConfig
impl UnsafeUnpin for CaConfig
impl UnwindSafe for CaConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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