pub struct Subordinate {
pub issuer: Name,
pub subject: Name,
pub path_len_constraint: Option<u8>,
pub emits_ocsp_response: bool,
pub client_auth: bool,
}Expand description
TLS Subordinate CA Certificate Profile
BR 7.1.2.6 TLS Subordinate CA Certificate Profile
Fields§
§issuer: Nameissuer Name, represents the name signing the certificate
subject: Namesubject Name, represents the name of the newly issued certificated
path_len_constraint: Option<u8>pathLenConstraint INTEGER (0..MAX) OPTIONAL BasicConstraints as defined in [RFC 5280 Section 4.2.1.9].
emits_ocsp_response: boolemits_ocsp_response will append the KeyUsages::DigitalSignature. This is meant for
CAs that will reply to OCSP requests.
client_auth: boolAllows this subordinate CA to issue certificates capable of doing client authentication
Trait Implementations§
Source§impl BuilderProfile for Subordinate
impl BuilderProfile for Subordinate
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 Subordinate
impl RefUnwindSafe for Subordinate
impl Send for Subordinate
impl Sync for Subordinate
impl Unpin for Subordinate
impl UnsafeUnpin for Subordinate
impl UnwindSafe for Subordinate
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