Megosztás a következőn keresztül:


SqlConnectionStringBuilder.ServerCertificate Property

Definition

Gets or sets the path to a certificate file to match against the SQL Server TLS/SSL certificate for the connection. The accepted certificate formats are PEM, DER, and CER. If specified, the SQL Server certificate is checked by verifying if the ServerCertificate provided is an exact match. (Only available in v5.1+)

public:
 property System::String ^ ServerCertificate { System::String ^ get(); void set(System::String ^ value); };
public string ServerCertificate { get; set; }
member this.ServerCertificate : string with get, set
Public Property ServerCertificate As String

Property Value

The value of the ServerCertificate property, or String.Empty if none has been supplied.

Remarks

This property corresponds to the "ServerCertificate" and "Server Certificate" keys within the connection string.

Note

This property only applies when using Encrypt in Mandatory or Strict mode, otherwise it is ignored.

Applies to