pub struct X509Config {Show 14 fields
pub default_validity_days: i64,
pub root_ca_cert_path: String,
pub root_ca_path: String,
pub root_ca_key_path: String,
pub intermediate_ca_cert_path: Option<String>,
pub intermediate_ca_path: Option<String>,
pub intermediate_ca_key_path: Option<String>,
pub default_rsa_key_size: u32,
pub default_ecdsa_curve: EcdsaCurve,
pub certificate_profiles: HashMap<String, CertificateProfile>,
pub enable_ocsp: bool,
pub ocsp_responder_url: Option<String>,
pub enable_crl: bool,
pub crl_distribution_url: Option<String>,
}
Expand description
X.509 Configuration
Fields§
§default_validity_days: i64
Default certificate validity period (days)
root_ca_cert_path: String
Root CA certificate path
root_ca_path: String
Root CA certificate path (alias)
root_ca_key_path: String
Root CA private key path
intermediate_ca_cert_path: Option<String>
Intermediate CA certificate path
intermediate_ca_path: Option<String>
Intermediate CA certificate path (alias)
intermediate_ca_key_path: Option<String>
Intermediate CA private key path
default_rsa_key_size: u32
Default key size for RSA
default_ecdsa_curve: EcdsaCurve
Default curve for ECDSA
certificate_profiles: HashMap<String, CertificateProfile>
Certificate profiles
enable_ocsp: bool
Enable OCSP (Online Certificate Status Protocol)
ocsp_responder_url: Option<String>
OCSP responder URL
enable_crl: bool
Enable CRL (Certificate Revocation List)
crl_distribution_url: Option<String>
CRL distribution point URL
Trait Implementations§
Source§impl Clone for X509Config
impl Clone for X509Config
Source§fn clone(&self) -> X509Config
fn clone(&self) -> X509Config
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 X509Config
impl Debug for X509Config
Auto Trait Implementations§
impl Freeze for X509Config
impl RefUnwindSafe for X509Config
impl Send for X509Config
impl Sync for X509Config
impl Unpin for X509Config
impl UnwindSafe for X509Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more