Property SslMode
- Namespace
- YndigoBlue.Velocity.Data.SqlServer
- Assembly
- YndigoBlue.Velocity.dll
SslMode
Gets or sets the SSL mode for the connection. Defaults to Require.
public override SslMode SslMode { get; set; }
Property Value
Remarks
SQL Server does not support Prefer (there is no "try SSL, fall back
to plaintext" mode — Encrypt is either Optional, Mandatory, or
Strict). Setting Prefer will throw a
NotSupportedException when the connection is opened.
| SslMode | Encrypt keyword | TrustServerCertificate |
|---|---|---|
| Disable | Optional | n/a |
| Require | Mandatory | true |
| VerifyCA | Mandatory | false |
| VerifyFull | Strict | false |