In the PostgreSQL documentation is described that required to build PostgreSQL for SSL support:
http://www.postgresql.org/docs/9.1/static/ssl-tcp.html
Is it possible that PostgreSQL installation supports SSL out of the box from some CentoOS repository? How to check if PostgreSQL installation supports SSL?
Pretty much any packaged PostgreSQL will support SSL.
That doesn't mean you can actually connect with SSL. For that, you need a private key and certificate to be configured for that install.
You really have:
pg_hba.conf
from my current locationpg_hba.conf
allows (or requires) connections via sslThe best way to see if it supports SSL, as a client, is to connect to it and see.
If you're checking to see if the server is compiled with SSL support, so SSL will work if you configure it, you can check pg_config.h
from the development package; it will define USE_OPENSSL
if it's enabled in the build. Or you can try to run the postgres
executable with the ssl=on
option set, e.g.
/path/to/postgres -c ssl=on
which will output:
FATAL: SSL is not supported by this build
if SSL isn't available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With