Struct X509ReqRef
pub struct X509ReqRef(/* private fields */);
Expand description
A borrowed reference to a X509Req
.
Implementations§
§impl X509ReqRef
impl X509ReqRef
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the certificate request to a PEM-encoded PKCS#10 structure.
The output will have a header of -----BEGIN CERTIFICATE REQUEST-----
.
This corresponds to PEM_write_bio_X509_REQ
.
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes the certificate request to a DER-encoded PKCS#10 structure.
This corresponds to i2d_X509_REQ
.
pub fn version(&self) -> i32
pub fn version(&self) -> i32
Returns the numerical value of the version field of the certificate request.
This corresponds to X509_REQ_get_version
.
pub fn subject_name(&self) -> &X509NameRef
pub fn subject_name(&self) -> &X509NameRef
Returns the subject name of the certificate request.
This corresponds to X509_REQ_get_subject_name
.
pub fn public_key(&self) -> Result<PKey<Public>, ErrorStack>
pub fn public_key(&self) -> Result<PKey<Public>, ErrorStack>
Returns the public key of the certificate request.
This corresponds to [`X509_REQ_get_pubkey“]
pub fn verify<T>(&self, key: &PKeyRef<T>) -> Result<bool, ErrorStack>where
T: HasPublic,
pub fn verify<T>(&self, key: &PKeyRef<T>) -> Result<bool, ErrorStack>where
T: HasPublic,
Check if the certificate request is signed using the given public key.
Returns true
if verification succeeds.
This corresponds to [`X509_REQ_verify“].
pub fn extensions(&self) -> Result<Stack<X509Extension>, ErrorStack>
pub fn extensions(&self) -> Result<Stack<X509Extension>, ErrorStack>
Returns the extensions of the certificate request.
This corresponds to [`X509_REQ_get_extensions“]
Trait Implementations§
§impl AsMut<X509ReqRef> for X509Req
impl AsMut<X509ReqRef> for X509Req
§fn as_mut(&mut self) -> &mut X509ReqRef
fn as_mut(&mut self) -> &mut X509ReqRef
§impl AsRef<X509ReqRef> for X509Req
impl AsRef<X509ReqRef> for X509Req
§fn as_ref(&self) -> &X509ReqRef
fn as_ref(&self) -> &X509ReqRef
§impl Borrow<X509ReqRef> for X509Req
impl Borrow<X509ReqRef> for X509Req
§fn borrow(&self) -> &X509ReqRef
fn borrow(&self) -> &X509ReqRef
§impl BorrowMut<X509ReqRef> for X509Req
impl BorrowMut<X509ReqRef> for X509Req
§fn borrow_mut(&mut self) -> &mut X509ReqRef
fn borrow_mut(&mut self) -> &mut X509ReqRef
§impl ForeignTypeRef for X509ReqRef
impl ForeignTypeRef for X509ReqRef
impl Send for X509ReqRef
impl Sync for X509ReqRef
Auto Trait Implementations§
impl Freeze for X509ReqRef
impl !RefUnwindSafe for X509ReqRef
impl Unpin for X509ReqRef
impl UnwindSafe for X509ReqRef
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