pub struct Root {
pub emits_ocsp_response: bool,
/* private fields */
}Expand description
Root CA certificate profile
Certificate profile conforming - to the extent possible - to the CABF BR for Root CAs.
Fields§
§emits_ocsp_response: boolWhether the root CA will emit OCSP responses.
This adds the KeyUsages::DigitalSignature bit to the KeyUsage extension.
Implementations§
Trait Implementations§
Source§impl BuilderProfile for Root
impl BuilderProfile for Root
Source§fn get_issuer(&self, subject: &Name) -> Name
fn get_issuer(&self, subject: &Name) -> Name
Issuer to be used for issued certificates
Source§fn get_subject(&self) -> Name
fn get_subject(&self) -> Name
Subject for the certificate to be used.
Source§fn build_extensions(
&self,
spk: SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>,
_issuer_spk: SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>,
tbs: &TbsCertificateInner,
) -> Result<Vec<Extension>, Error>
fn build_extensions( &self, spk: SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>, _issuer_spk: SubjectPublicKeyInfo<AnyRef<'_>, BitStringRef<'_>>, tbs: &TbsCertificateInner, ) -> Result<Vec<Extension>, Error>
X509v3 extensions to be added in the certificates.
Auto Trait Implementations§
impl Freeze for Root
impl RefUnwindSafe for Root
impl Send for Root
impl Sync for Root
impl Unpin for Root
impl UnsafeUnpin for Root
impl UnwindSafe for Root
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