pub struct SslOptionsBuilder { /* private fields */ }
Expand description

Builder to create SSL Options.

Implementations

Creates a new builder with default options.

Set the name of the file in PEM format containing the public digital certificates trusted by the client.

Set the name of the file in PEM format containing the public certificate chain of the client.

It may also include the client’s private key.

If not included in the Key Store, this setting points to the file in PEM format containing the client’s private key.

The password to load the client’s privateKey if it’s encrypted.

The list of cipher suites that the client will present to the server during the SSL handshake.

For a full explanation of the cipher list format, please see the OpenSSL on-line documentation: http://www.openssl.org/docs/apps/ciphers.html#CIPHER_LIST_FORMAT

If this setting is ommitted, its default value will be “ALL”, that is, all the cipher suites -excluding those offering no encryption- will be considered.

Enable or disable verification of the server certificate

The SSL/TLS version to use.

Whether to carry out post-connect checks, including that a certificate matches the given host name.

If set, this points to a directory containing CA certificates in PEM format.

Don’t load the default SSL CA.

This should be used together with PSK to make sure regular servers with certificate in place is not accepted.

If set, only these protocols are used during negotiation.

Create the SSL options from the builder.

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.