SSL options for connection.
Namespace:
MySql.Data.MySqlClient
Assembly:
MySql.Data (in MySql.Data.dll) Version: 8.0.23
SyntaxPublic Enumeration MySqlSslMode
Members
| Member name | Value | Description |
---|
| None | 0 |
Do not use SSL.
|
| Preferred | 1 |
Use SSL, if server supports it. This option is only available for the classic protocol.
|
| Prefered | 1 | |
| Required | 2 |
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 | 3 |
Always use SSL. Validate server SSL certificate, but different host name mismatch.
|
| VerifyFull | 4 |
Always use SSL and perform full certificate validation.
|
See Also