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
public enum MySqlSslMode
  Member nameValueDescription
None0 Do not use SSL.
Preferred1 Use SSL, if server supports it. This option is only available for the classic protocol.
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