Struct native_tls::Certificate
[−]
[src]
pub struct Certificate(_);
An X509 certificate.
Methods
impl Certificate
[src]
fn from_der(der: &[u8]) -> Result<Certificate>
[src]
Parses a DER-formatted X509 certificate.
fn from_pem(der: &[u8]) -> Result<Certificate>
[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.
Trait Implementations
impl CertificateExt for Certificate
[src]
fn from_cert_context(cert: CertContext) -> Certificate
[src]
builds a native_Tls Certificate
from an schannel CertContext