Class SslMode (0.2.1)

SslMode(value)

SSL mode options.

Values: SSL_MODE_UNSPECIFIED (0): SSL mode not specified. Defaults to ENCRYPTED_ONLY. SSL_MODE_ALLOW (1): SSL connections are optional. CA verification not enforced. SSL_MODE_REQUIRE (2): SSL connections are required. CA verification not enforced. Clients may use locally self-signed certificates (default psql client behavior). SSL_MODE_VERIFY_CA (3): SSL connections are required. CA verification enforced. Clients must have certificates signed by a Cluster CA, e.g. via GenerateClientCertificate. ALLOW_UNENCRYPTED_AND_ENCRYPTED (4): SSL connections are optional. CA verification not enforced. ENCRYPTED_ONLY (5): SSL connections are required. CA verification not enforced.