Enum SslMode
Specifies how to manage SSL.
Namespace: Npgsql
Assembly: Npgsql.dll
Syntax
public enum SslMode
Fields
Name | Description |
---|---|
Allow | Prefer non-SSL connections if the server allows them, but allow SSL connections. |
Disable | SSL is disabled. If the server requires SSL, the connection will fail. |
Prefer | Prefer SSL connections if the server allows them, but allow connections without SSL. |
Require | Fail the connection if the server doesn't support SSL. |
VerifyCA | Fail the connection if the server doesn't support SSL. Also verifies server certificate. |
VerifyFull | Fail the connection if the server doesn't support SSL. Also verifies server certificate with host's name. |