Struct openssl::ssl::SslContextBuilder [] [src]

pub struct SslContextBuilder(_);

A builder for SslContexts.

Methods

impl SslContextBuilder
[src]

Configures the certificate verification method for new connections.

Configures the certificate verification method for new connections and registers a verification callback.

Configures the server name indication (SNI) callback for new connections

Obtain the server name with servername then set the corresponding context with set_ssl_context

Sets verification depth

Use the default locations of trusted certificates for verification.

These locations are read from the SSL_CERT_FILE and SSL_CERT_DIR environment variables if present, or defaults specified at OpenSSL build time otherwise.

Specifies the file that contains trusted CA certificates.

Set the context identifier for sessions

This value identifies the server's session cache to a clients, telling them when they're able to reuse sessions. Should be set to a unique value per server, unless multiple servers share a session cache.

This value should be set when using client certificates, or each request will fail handshake and need to be restarted.

Specifies the file that contains certificate

Specifies the file that contains certificate chain

Specifies the certificate

Adds a certificate to the certificate chain presented together with the certificate specified using set_certificate()

Specifies the file that contains private key

Specifies the private key

Set the protocols to be used during Next Protocol Negotiation (the protocols supported by the application).

Checks consistency between the private key and certificate.

Trait Implementations

impl Sync for SslContextBuilder
[src]

impl Send for SslContextBuilder
[src]

impl Drop for SslContextBuilder
[src]

A method called when the value goes out of scope. Read more