hickory_proto::rustls::tls_server

Function read_cert

Source
pub fn read_cert(
    cert_path: &Path,
) -> Result<Vec<CertificateDer<'static>>, ProtoError>
Available on crate feature dns-over-rustls only.
Expand description

Read the certificate from the specified path.

If the password is specified, then it will be used to decode the Certificate