Click or drag to resize

MySqlSslMode Enumeration

SSL options for connection.

Namespace:  MySql.Data.MySqlClient
Assembly:  MySql.Data (in MySql.Data.dll) Version: 8.0.23
Syntax
public enum MySqlSslMode
Members
  Member nameValueDescription
None0 Do not use SSL.
Preferred1 Use SSL, if server supports it. This option is only available for the classic protocol.
Prefered1
Required2 Always use SSL. Deny connection if server does not support SSL. Do not perform server certificate validation. This is the default SSL mode when the same isn't specified as part of the connection string.
VerifyCA3 Always use SSL. Validate server SSL certificate, but different host name mismatch.
VerifyFull4 Always use SSL and perform full certificate validation.
See Also