Table of Contents

Enum TlsMode

Namespace
NATS.Client.Core
Assembly
NATS.Client.Core.dll

TLS mode to use during connection.

public enum TlsMode

Fields

Auto = 0

For connections that use the "nats://" scheme and don't supply Client or CA Certificates - same as Prefer For connections that use the "tls://" scheme or supply Client or CA Certificates - same as Require

Disable = 4

Disabled mode will not attempt to upgrade the connection to TLS.

Implicit = 3

Upgrades the connection to TLS as soon as the connection is established.

Prefer = 1

if the Server supports TLS, then use it, otherwise use plain-text.

Require = 2

Forces the connection to upgrade to TLS. if the Server does not support TLS, then fail the connection.