Function ssl_context_builder_from_pem_files

Source
pub fn ssl_context_builder_from_pem_files<P: AsRef<Path>, Q: AsRef<Path>>(
    cert_file: P,
    key_file: Q,
    protocols: Protocols,
) -> Result<SslContextBuilder, Error>
Available on crate feature tls-openssl only.
Expand description

The low-level function to retrieve configuration to further customization.

Creates the SSL context builder. Certificates and key will be obtained from files. Protocols determines list of protocols that will be supported.