Struct hyper_openssl::OpensslServer
[−]
[src]
pub struct OpensslServer(_);
An SslServer
implementation using OpenSSL.
Methods
impl OpensslServer
[src]
fn from_files<P, Q>(key: P, certs: Q) -> Result<OpensslServer, ErrorStack> where P: AsRef<Path>, Q: AsRef<Path>
Constructs an OpensslServer
with a reasonable default configuration.
This currently corresponds to the Intermediate profile of the [Mozilla Server Side TLS recommendations][mozilla], but is subject to change. It should be compatible with everything but the very oldest clients (notably Internet Explorer 6 on Windows XP and Java 6).
The key
file should contain the server's PEM-formatted private key, and the certs
file
should contain a sequence of PEM-formatted certificates, starting with the leaf certificate
corresponding to the private key, followed by a chain of intermediate certificates to a
trusted root.
Trait Implementations
impl Clone for OpensslServer
[src]
fn clone(&self) -> OpensslServer
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl From<SslAcceptor> for OpensslServer
[src]
fn from(acceptor: SslAcceptor) -> OpensslServer
Performs the conversion.
impl<T> SslServer<T> for OpensslServer where T: NetworkStream + Clone + Sync + Send + Debug
[src]
type Stream = SslStream<T>
The protected stream.
fn wrap_server(&self, stream: T) -> Result<SslStream<T>>
Wrap a server stream with SSL.