Struct Issuer
pub struct Issuer<'a, S> { /* private fields */ }rustls or boring or acme) and crate feature rustls only.Expand description
An issuer that can sign certificates.
Encapsulates the distinguished name, key identifier method, key usages and signing key of the issuing certificate.
Implementations§
§impl<'a, S> Issuer<'a, S>where
S: SigningKey,
impl<'a, S> Issuer<'a, S>where
S: SigningKey,
pub fn new(params: CertificateParams, signing_key: S) -> Issuer<'a, S>
pub fn new(params: CertificateParams, signing_key: S) -> Issuer<'a, S>
Create a new issuer from the given parameters and signing key.
pub fn from_params(
params: &'a CertificateParams,
signing_key: S,
) -> Issuer<'a, S>
pub fn from_params( params: &'a CertificateParams, signing_key: S, ) -> Issuer<'a, S>
Create a new issuer from the given parameters and signing key references.
Use Issuer::new instead if you want to obtain an Issuer that owns
its parameters.
pub fn from_ca_cert_pem(
pem_str: &str,
signing_key: S,
) -> Result<Issuer<'a, S>, Error>
Available on crate features pem and x509-parser only.
pub fn from_ca_cert_pem( pem_str: &str, signing_key: S, ) -> Result<Issuer<'a, S>, Error>
pem and x509-parser only.Parses an existing CA certificate from the ASCII PEM format.
See from_ca_cert_der for more details.
pub fn from_ca_cert_der(
ca_cert: &CertificateDer<'_>,
signing_key: S,
) -> Result<Issuer<'a, S>, Error>
Available on crate feature x509-parser only.
pub fn from_ca_cert_der( ca_cert: &CertificateDer<'_>, signing_key: S, ) -> Result<Issuer<'a, S>, Error>
x509-parser only.Parses an existing CA certificate from the DER format.
This function assumes the provided certificate is a CA. It will not check
for the presence of the BasicConstraints extension, or perform any other
validation.
If you already have a byte slice containing DER, it can trivially be converted into
CertificateDer using the Into trait.
pub fn key_usages(&self) -> &[KeyUsagePurpose]
pub fn key_usages(&self) -> &[KeyUsagePurpose]
Allowed key usages for this issuer.
Trait Implementations§
Auto Trait Implementations§
impl<'a, S> Freeze for Issuer<'a, S>where
S: Freeze,
impl<'a, S> RefUnwindSafe for Issuer<'a, S>where
S: RefUnwindSafe,
impl<'a, S> Send for Issuer<'a, S>where
S: Send,
impl<'a, S> Sync for Issuer<'a, S>where
S: Sync,
impl<'a, S> Unpin for Issuer<'a, S>where
S: Unpin,
impl<'a, S> UnwindSafe for Issuer<'a, S>where
S: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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> ⓘ
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> ⓘ
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more