Table of Contents

Property SslMode

Namespace
YndigoBlue.Velocity.Data
Assembly
YndigoBlue.Velocity.dll

SslMode

Gets or sets the SSL/TLS encryption and certificate verification mode for this connection.

public virtual SslMode SslMode { get; set; }

Property Value

SslMode

Remarks

Controls whether SSL/TLS is used and how the server's certificate is validated. Defaults to Disable — no encryption unless explicitly configured.

Recommended production setting: VerifyFull combined with a trusted CA certificate in SslCaPath. This prevents man-in-the-middle attacks and ensures you are connected to the intended server.

For SQL Server, VerifyCA and VerifyFull automatically set TrustServerCertificate to false.

For DB2, Prefer and Require are not supported and will throw a NotSupportedException at connection time.

For SQL Server, Prefer is not supported and will throw a NotSupportedException at connection time. SqlServerDatasourceConnection overrides the default to Require.