Struct openssl::x509::X509
[−]
pub struct X509(_);
Methods
impl X509
[src]
pub fn builder() -> Result<X509Builder, ErrorStack>
[src]
Returns a new builder.
pub fn from_pem(pem: &[u8]) -> Result<X509, ErrorStack>
[src]
Deserializes a value from PEM-formatted data.
pub fn from_der(der: &[u8]) -> Result<X509, ErrorStack>
[src]
Deserializes a value from DER-formatted data.
pub fn stack_from_pem(pem: &[u8]) -> Result<Vec<X509>, ErrorStack>
[src]
Deserializes a list of PEM-formatted certificates.
Methods from Deref<Target = X509Ref>
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 ForeignType for X509
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.
fn as_ptr(&self) -> *mut X509
Returns a raw pointer to the wrapped value.
impl Drop for X509
impl Deref for X509
type Target = X509Ref
The resulting type after dereferencing.
fn deref(&self) -> &X509Ref
Dereferences the value.
impl DerefMut for X509
impl Clone for X509
[src]
fn clone(&self) -> X509
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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