ssl_context_builder_from_pem_data

Function ssl_context_builder_from_pem_data 

Source
pub fn ssl_context_builder_from_pem_data<'a>(
    cert: &'a [u8],
    key: &'a [u8],
    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 data. Protocols determines list of protocols that will be supported.