Struct openssl::x509::X509Ref
[−]
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(&self) -> &Asn1TimeRef
Returns the certificate's Not After validity period.
fn not_before(&self) -> &Asn1TimeRef
Returns the certificate's Not Before validity period.
fn signature(&self) -> &Asn1BitStringRef
Returns the certificate's signature
fn signature_algorithm(&self) -> &X509AlgorithmRef
Returns the certificate's signature algorithm.
fn ocsp_responders(&self) -> Result<Stack<OpensslString>, ErrorStack>
Returns the list of OCSP responder URLs specified in the certificate's Authority Information Access field.
fn issued(&self, subject: &X509Ref) -> Result<(), X509VerifyError>
Checks that this certificate issued subject
.
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 ForeignTypeRef for X509Ref
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