Struct openssl::x509::X509Ref
[−]
[src]
pub struct X509Ref(_);
Methods
impl X509Ref
[src]
fn subject_name(&self) -> &X509NameRef
fn subject_alt_names(&self) -> Option<Stack<GeneralName>>
Returns this certificate's SAN entries, if they exist.
fn public_key(&self) -> Result<PKey, ErrorStack>
fn fingerprint(&self, hash_type: MessageDigest) -> Result<Vec<u8>, ErrorStack>
Returns certificate fingerprint calculated using provided hash
fn not_after<'a>(&'a self) -> &'a Asn1TimeRef
Returns certificate Not After validity period.
fn not_before<'a>(&'a self) -> &'a Asn1TimeRef
Returns certificate Not Before validity period.
fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
Serializes this value to PEM.
fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Serializes this value to DER.
Trait Implementations
impl OpenSslTypeRef for X509Ref
[src]
type CType = X509
The raw C type.
unsafe fn from_ptr<'a>(ptr: *mut Self::CType) -> &'a Self
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
Returns a raw pointer to the wrapped value.
impl ToOwned for X509Ref
[src]
type Owned = X509
fn to_owned(&self) -> X509
Creates owned data from borrowed data, usually by cloning. Read more