pub enum Profile {
Root,
SubCA {
issuer: Name,
path_len_constraint: Option<u8>,
},
Leaf {
issuer: Name,
enable_key_agreement: bool,
enable_key_encipherment: bool,
include_subject_key_identifier: bool,
},
Manual {
issuer: Option<Name>,
},
}
Available on crate feature
builder
only.Expand description
The type of certificate to build
Variants§
Root
Build a root CA certificate
SubCA
Fields
Build an intermediate sub CA certificate
Leaf
Fields
§
include_subject_key_identifier: bool
Available on crate feature
hazmat
only.should 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.
Build an end certificate
Manual
Fields
Available on crate feature
hazmat
only.Opt-out of the default extensions
Trait Implementations§
source§impl PartialEq for Profile
impl PartialEq for Profile
impl Eq for Profile
impl StructuralEq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin 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