pub enum Profile {
Root,
SubCA {
issuer: RdnSequence,
path_len_constraint: Option<u8>,
},
Leaf {
issuer: RdnSequence,
enable_key_agreement: bool,
enable_key_encipherment: bool,
include_subject_key_identifier: bool,
},
Manual {
issuer: Option<RdnSequence>,
},
}Expand description
The type of certificate to build
Variants§
Root
Build a root CA certificate
SubCA
Build an intermediate sub CA certificate
Fields
§
issuer: RdnSequenceissuer Name, represents the name signing the certificate
Leaf
Build an end certificate
Fields
§
issuer: RdnSequenceissuer Name, represents the name signing the certificate
§
include_subject_key_identifier: boolshould the subject key identifier extension be included
From [RFC 5280 Section 4.2.1.2]: For end entity certificates, subject key identifiers SHOULD be derived from the public key. Two common methods for generating key identifiers from the public key are identified above.
Manual
Opt-out of the default extensions
Fields
§
issuer: Option<RdnSequence>issuer Name,
represents the name signing the certificate
A None will make it a self-signed certificate
Trait Implementations§
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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