Enum MySqlSslMode
SSL options for connection.
Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data.dll
Version: 9.1.0
Syntax
public enum MySqlSslMode
Fields
Name | Description |
---|---|
Disabled | Do not use SSL. |
None | Do not use SSL. |
Prefered | Use SSL, if server supports it. This option is only available for the classic protocol. |
Preferred | Use SSL, if server supports it. This option is only available for the classic protocol. |
Required | 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. |
VerifyCA | Always use SSL. Validate server SSL certificate, but different host name mismatch. |
VerifyFull | Always use SSL and perform full certificate validation. |