pub struct CertificateConfig {
pub common_name: String,
pub subject_alt_names: Vec<String>,
pub validity_duration: Duration,
pub key_algorithm: KeyAlgorithm,
pub self_signed: bool,
pub ca_cert_path: Option<String>,
pub require_chain_validation: bool,
}
Expand description
Certificate configuration for different deployment scenarios
Fields§
§common_name: String
Common name for the certificate (typically the hostname or peer ID)
subject_alt_names: Vec<String>
Subject alternative names (SANs) for the certificate
validity_duration: Duration
Certificate validity duration
key_algorithm: KeyAlgorithm
Key algorithm and size
self_signed: bool
Whether to generate self-signed certificates
ca_cert_path: Option<String>
CA certificate path (for validation)
require_chain_validation: bool
Certificate chain validation requirements
Trait Implementations§
Source§impl Clone for CertificateConfig
impl Clone for CertificateConfig
Source§fn clone(&self) -> CertificateConfig
fn clone(&self) -> CertificateConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CertificateConfig
impl Debug for CertificateConfig
Auto Trait Implementations§
impl Freeze for CertificateConfig
impl RefUnwindSafe for CertificateConfig
impl Send for CertificateConfig
impl Sync for CertificateConfig
impl Unpin for CertificateConfig
impl UnwindSafe for CertificateConfig
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