Struct openssl::x509::X509
[−]
[src]
pub struct X509(_);
Methods
impl X509
[src]
fn from_pem(pem: &[u8]) -> Result<X509, ErrorStack>
Deserializes a value from PEM-formatted data.
fn from_der(der: &[u8]) -> Result<X509, ErrorStack>
Deserializes a value from DER-formatted data.
Methods from Deref<Target=X509Ref>
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 OpenSslType for X509
[src]
type CType = X509
The raw C type.
type Ref = X509Ref
The type representing a reference to this type.
unsafe fn from_ptr(ptr: *mut X509) -> X509
Constructs an instance of this type from its raw type.
impl Drop for X509
[src]
impl Deref for X509
[src]
type Target = X509Ref
The resulting type after dereferencing
fn deref(&self) -> &X509Ref
The method called to dereference a value
impl DerefMut for X509
[src]
impl Clone for X509
[src]
fn clone(&self) -> X509
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl AsRef<X509Ref> for X509
[src]
impl Borrow<X509Ref> for X509
[src]
impl Stackable for X509
[src]
type StackType = stack_st_X509
The C stack type for this element. Read more