Class TlsSettings
A collection of TLS/SSL settings for Couchbase connections.
Inherited Members
Namespace: Couchbase.Core.IO.Authentication
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class TlsSettings
Properties
| Edit this page View SourceEnableCertificateRevocation
Whether to enable certificate revocation checking.
Declaration
public bool EnableCertificateRevocation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
EnabledSslProtocols
Enabled SSL/TLS protocols. Defaults to TLS 1.2 and 1.3 (when supported).
Declaration
public SslProtocols EnabledSslProtocols { get; set; }
Property Value
| Type | Description |
|---|---|
| SslProtocols |
HttpCertificateValidationCallback
Custom callback for HTTP server certificate validation (advanced scenarios).
Declaration
public RemoteCertificateValidationCallback? HttpCertificateValidationCallback { get; set; }
Property Value
| Type | Description |
|---|---|
| RemoteCertificateValidationCallback |
HttpIgnoreRemoteCertificateNameMismatch
Whether to ignore server certificate name mismatches for HTTP connections.
Declaration
public bool HttpIgnoreRemoteCertificateNameMismatch { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
KvCertificateValidationCallback
Custom callback for KV server certificate validation (advanced scenarios).
Declaration
public RemoteCertificateValidationCallback? KvCertificateValidationCallback { get; set; }
Property Value
| Type | Description |
|---|---|
| RemoteCertificateValidationCallback |
KvIgnoreRemoteCertificateNameMismatch
Whether to ignore server certificate name mismatches for KV connections.
Declaration
public bool KvIgnoreRemoteCertificateNameMismatch { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
TrustedServerCertificateFactory
Custom server CA certificates to trust (trust anchors). These are used to validate the server's certificate, NOT for client authentication.
Declaration
public ICertificateFactory? TrustedServerCertificateFactory { get; set; }
Property Value
| Type | Description |
|---|---|
| ICertificateFactory |