require
or optional
ca_crt_file
, which is used to verify whether the certificate was signed by the Certificate Authority (CA) is optional.
min_protocol_version
and max_protocol_version
can be omitted, as they have default values.sslmode=require
or sslmode=disable
will be accepted.
psql
with the sslmode=disable
option, will be rejected.
psql
with the sslmode=require
option, will be rejected.
SSL Mode | Eavesdropping Protection | Support |
---|---|---|
off | No | SSL connections not supported |
require | Yes | Only SSL connections are allowed |
optional | Yes | both SSL and no SSL connections are supported |