[−]Struct openssl::x509::X509Req  
An X509 certificate request.
Methods
impl X509Req[src] 
impl X509Reqpub fn builder() -> Result<X509ReqBuilder, ErrorStack>[src] 
pub fn builder() -> Result<X509ReqBuilder, ErrorStack>A builder for X509Req.
pub fn from_pem(pem: &[u8]) -> Result<X509Req, ErrorStack>[src] 
pub fn from_pem(pem: &[u8]) -> Result<X509Req, ErrorStack>Deserializes a PEM-encoded PKCS#10 certificate request structure.
The input should have a header of -----BEGIN CERTIFICATE REQUEST-----.
This corresponds to PEM_read_bio_X509_REQ.
pub fn from_der(der: &[u8]) -> Result<X509Req, ErrorStack>[src] 
pub fn from_der(der: &[u8]) -> Result<X509Req, ErrorStack>Deserializes a DER-encoded PKCS#10 certificate request structure.
This corresponds to d2i_X509_REQ.
Methods from Deref<Target = X509ReqRef>
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>[src] 
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>[src] 
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[src] 
pub fn version(&self) -> i32Returns 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] 
pub fn subject_name(&self) -> &X509NameRefReturns 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] 
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 extensions(&self) -> Result<Stack<X509Extension>, ErrorStack>[src] 
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 Drop for X509Req
impl Drop for X509Reqimpl Sync for X509Req[src] 
impl Sync for X509Reqimpl AsRef<X509ReqRef> for X509Req
impl AsRef<X509ReqRef> for X509Reqfn as_ref(&self) -> &X509ReqRef
fn as_ref(&self) -> &X509ReqRefPerforms the conversion.
impl Send for X509Req[src] 
impl Send for X509Reqimpl Deref for X509Req
impl Deref for X509Reqtype Target = X509ReqRef
The resulting type after dereferencing.
fn deref(&self) -> &X509ReqRef
fn deref(&self) -> &X509ReqRefDereferences the value.
impl DerefMut for X509Req
impl DerefMut for X509Reqfn deref_mut(&mut self) -> &mut X509ReqRef
fn deref_mut(&mut self) -> &mut X509ReqRefMutably dereferences the value.
impl Borrow<X509ReqRef> for X509Req
impl Borrow<X509ReqRef> for X509Reqfn borrow(&self) -> &X509ReqRef
fn borrow(&self) -> &X509ReqRefImmutably borrows from an owned value. Read more
impl ForeignType for X509Req
impl ForeignType for X509ReqBlanket Implementations
impl<T> From for T[src] 
impl<T> From for Timpl<T, U> Into for T where
    U: From<T>, [src] 
impl<T, U> Into for T where
    U: From<T>, impl<T, U> TryFrom for T where
    T: From<U>, [src] 
impl<T, U> TryFrom for T where
    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] 
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
    T: ?Sized, [src] 
impl<T> Borrow for T where
    T: ?Sized, impl<T> BorrowMut for T where
    T: ?Sized, [src] 
impl<T> BorrowMut for T where
    T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src] 
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
    U: TryFrom<T>, [src] 
impl<T, U> TryInto for T where
    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] 
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
    T: 'static + ?Sized, [src] 
impl<T> Any for T where
    T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src] 
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API.  (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more