Re: enable PostgreSQL SSL from RPM package installation

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Dylan Luong <Dylan(dot)Luong(at)unisa(dot)edu(dot)au>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: enable PostgreSQL SSL from RPM package installation
Date: 2017-06-22 12:57:43
Message-ID: 3870fa2b-123d-3bdd-5e4e-9eefebde1c3d@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 06/21/2017 11:10 PM, Dylan Luong wrote:
> Hi
>
> I have installed PostgreSQL from the following RPMs onto the server. And
> I would like to enable SSL.
>
> postgresql96-devel-9.6.2-2PGDG.rhel7.x86_64
>
> postgresql96-libs-9.6.2-2PGDG.rhel7.x86_64
>
> postgresql96-contrib-9.6.2-2PGDG.rhel7.x86_64
>
> postgresql96-server-9.6.2-2PGDG.rhel7.x86_64
>
> postgresql96-9.6.2-2PGDG.rhel7.x86_64
>
> From the PostgreSQL documentation,
> https://www.postgresql.org/docs/current/static/ssl-tcp.html it says
> that PostgreSQL SSL support needs to be enable at build time.
>
> Just wondering if these RPMs are compiled with SSL enabled?

You can use pg_config:

https://www.postgresql.org/docs/9.6/static/app-pgconfig.html

So, on my machine with source compiled Postgrse:

pg_config --version --configure
PostgreSQL 9.6.3
'--with-python' '--with-openssl' '--with-libxml'
'--prefix=/usr/local/pgsql96'

If you have more then one version of Postgres installed then you will
need to use the pg_config from that version:

/usr/local/pgsql94/bin/pg_config --version --configure
PostgreSQL 9.4.11
'--with-python' '--with-openssl' '--with-libxml'
'--prefix=/usr/local/pgsql94'

>
> Thanks.
>
> Regards
>
> Dylan
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Achilleas Mantzios 2017-06-22 13:25:20 Re: pglogical vs. built-in logical replication in pg-10
Previous Message Andreas Joseph Krogh 2017-06-22 10:38:12 Re: pglogical vs. built-in logical replication in pg-10