[−]Struct openssl::x509::X509ReqRef
Reference to X509Req
.
Methods
impl X509ReqRef
[src][−]
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
[src][−]
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>
[src][−]
Serializes the certificate request to a DER-encoded PKCS#10 structure.
This corresponds to i2d_X509_REQ
.
pub fn version(&self) -> i32
[src][−]
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
[src][−]
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>
[src][−]
Returns the public key of the certificate request.
This corresponds to [`X509_REQ_get_pubkey"]
pub fn extensions(&self) -> Result<Stack<X509Extension>, ErrorStack>
[src][−]
Returns the extensions of the certificate request.
This corresponds to [`X509_REQ_get_extensions"]
Trait Implementations
impl Sync for X509ReqRef
[src]
impl AsRef<X509ReqRef> for X509Req
[+]
impl Send for X509ReqRef
[src]
impl Borrow<X509ReqRef> for X509Req
[+]
impl ForeignTypeRef for X509ReqRef
[+]
Blanket Implementations
impl<T> From for T
[src][−]
impl<T, U> Into for T where
U: From<T>,
[src][−]
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src][−]
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src][−]
impl<T> Borrow for T where
T: ?Sized,
[src][−]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][−]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src][−]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][−]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src][−]
impl<T> Any for T where
T: 'static + ?Sized,
[src][−]
T: 'static + ?Sized,