Struct openssl::x509::X509Ref
[−]
pub struct X509Ref(_);
Methods
impl X509Ref
[src]
pub fn subject_name(&self) -> &X509NameRef
[src]
pub fn subject_alt_names(&self) -> Option<Stack<GeneralName>>
[src]
Returns this certificate's SAN entries, if they exist.
pub fn public_key(&self) -> Result<PKey, ErrorStack>
[src]
pub fn fingerprint(
&self,
hash_type: MessageDigest
) -> Result<Vec<u8>, ErrorStack>
[src]
&self,
hash_type: MessageDigest
) -> Result<Vec<u8>, ErrorStack>
Returns certificate fingerprint calculated using provided hash
pub fn not_after(&self) -> &Asn1TimeRef
[src]
Returns the certificate's Not After validity period.
pub fn not_before(&self) -> &Asn1TimeRef
[src]
Returns the certificate's Not Before validity period.
pub fn signature(&self) -> &Asn1BitStringRef
[src]
Returns the certificate's signature
pub fn signature_algorithm(&self) -> &X509AlgorithmRef
[src]
Returns the certificate's signature algorithm.
pub fn ocsp_responders(&self) -> Result<Stack<OpensslString>, ErrorStack>
[src]
Returns the list of OCSP responder URLs specified in the certificate's Authority Information Access field.
pub fn issued(&self, subject: &X509Ref) -> Result<(), X509VerifyError>
[src]
Checks that this certificate issued subject
.
pub fn to_pem(&self) -> Result<Vec<u8>, ErrorStack>
[src]
Serializes this value to PEM.
pub fn to_der(&self) -> Result<Vec<u8>, ErrorStack>
[src]
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
[src]
Constructs a shared instance of this type from its raw type.
unsafe fn from_ptr_mut<'a>(ptr: *mut Self::CType) -> &'a mut Self
[src]
Constructs a mutable reference of this type from its raw type.
fn as_ptr(&self) -> *mut Self::CType
[src]
Returns a raw pointer to the wrapped value.
impl ToOwned for X509Ref
[src]
type Owned = X509
fn to_owned(&self) -> X509
[src]
Creates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)
[src]
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more