Struct openssl::x509::X509Ref
[−]
[src]
pub struct X509Ref<'a>(_, _);
A borrowed public key certificate.
Methods
impl<'a> X509Ref<'a>
[src]
unsafe fn new(handle: *mut X509) -> X509Ref<'a>
Creates a new X509Ref
wrapping the provided handle.
fn as_ptr(&self) -> *mut X509
fn subject_name<'b>(&'b self) -> X509Name<'b>
fn subject_alt_names<'b>(&'b self) -> Option<GeneralNames<'b>>
Returns this certificate's SAN entries, if they exist.
fn public_key(&self) -> Result<PKey, ErrorStack>
fn fingerprint(&self, hash_type: Type) -> Result<Vec<u8>, ErrorStack>
Returns certificate fingerprint calculated using provided hash
fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
Writes certificate as PEM
fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
Returns a DER serialized form of the certificate