Struct hyper_native_tls::Certificate
[−]
[src]
pub struct Certificate(_);
An X509 certificate.
Methods
impl Certificate
[src]
pub fn from_der(der: &[u8]) -> Result<Certificate, Error>
[src]
Parses a DER-formatted X509 certificate.
pub fn from_pem(der: &[u8]) -> Result<Certificate, Error>
[src]
Parses a PEM-formatted X509 certificate. If the PEM file contains more than one certificate the last one is used and the others are ignored.