Table of Contents

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

SslMode

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.

SslModeEncrypt keywordTrustServerCertificate
DisableOptionaln/a
RequireMandatorytrue
VerifyCAMandatoryfalse
VerifyFullStrictfalse