From: Paul Förster <paul.foerster@gmail.com>
To: Shankar Bhaskaran <mailshankarb@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Configuring only SSL in postgres docker image
Date: Tue, 4 Aug 2020 07:32:40 +0200
Message-ID: <D642CCDB-DA71-443E-BB2B-D99C40255F25@gmail.com> (raw)
In-Reply-To: <CA+DMY5Q3R7-TaNTy=9yPnaAeeVfQMbU0i3n_6+8UemOBPX5q0w@mail.gmail.com>
References: <CA+DMY5Q3R7-TaNTy=9yPnaAeeVfQMbU0i3n_6+8UemOBPX5q0w@mail.gmail.com>
Hi Shankar,
> On 03. Aug, 2020, at 22:01, Shankar Bhaskaran <mailshankarb@gmail.com> wrote:
> I am trying to enable ssl on postgres docker image . The postgres image should only support SSL . I did configure the command:" -c ssl=on -c ssl_key_file=/opt/postgresql/server.key -c ssl_cert_file=/opt/postgresql/server.crt" in the docker compose file.
I don't know anything about Docker at all, so I can't say anything here.
> I also added the following entry in the pg_hba.conf after commenting all other host entries
> "hostssl all all all md5".
are there any "host" entries in the pg_hba.conf file? If so, comment them out so that only the "hostssl" entries are enabled.
> But I am able to make ssl as well as non ssl connections to the postgres image.
see above.
> My observation is the command only updates the postmaster.opts file and not the postgres.conf file .
>
> Could I get some help
the postgresql.conf file should have ssl=on and of course the key & certificate file settings. Maybe you should put them there.
Cheers,
Paul
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: paul.foerster@gmail.com, mailshankarb@gmail.com
Subject: Re: Configuring only SSL in postgres docker image
In-Reply-To: <D642CCDB-DA71-443E-BB2B-D99C40255F25@gmail.com>
References: <CA+DMY5Q3R7-TaNTy=9yPnaAeeVfQMbU0i3n_6+8UemOBPX5q0w@mail.gmail.com> <D642CCDB-DA71-443E-BB2B-D99C40255F25@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox