Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2pZI-0003B6-4K for pgsql-general@arkaria.postgresql.org; Tue, 04 Aug 2020 05:32:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k2pZF-0007t2-Vv for pgsql-general@arkaria.postgresql.org; Tue, 04 Aug 2020 05:32:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1k2pZF-0007sv-M7 for pgsql-general@lists.postgresql.org; Tue, 04 Aug 2020 05:32:53 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k2pZ9-00026Z-7t for pgsql-general@lists.postgresql.org; Tue, 04 Aug 2020 05:32:52 +0000 Received: by mail-ed1-x544.google.com with SMTP id m20so19411046eds.2 for ; Mon, 03 Aug 2020 22:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XZ1hvo8Snuj9/FZ22UQUNujLd57m/RR00aa12k1gYk8=; b=kZ/akfqv9g9BdS+aB2WQErOhXueUQUBPA3vcKe24cF6k23/QTQU20LZQLGhmx1pOwg AGRZTdmGucnZ36G9neq7JAqvK4iWO/rqZ4VCS7bcXleQJdTby0PginO6/XLweS9/AVzh RlwKR28KpidXZQin1uKZ06FxvP7dmpyODd7vbyXWAa2fjPRLGbWOEIpmtPMPVS3jmAa7 9FXhDcb+Ufh2dWcsOFN0X0GzjRB23amTHlLT5uf5qUgpj9LjLgKz7VY4sqeWJByJaWhJ YK3oS0P10pXgP0OEqqPMp6Pont7w3c2aupFBM6K2fwZWWRq6I4xcn9UxTlma56r1GHoh NUzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XZ1hvo8Snuj9/FZ22UQUNujLd57m/RR00aa12k1gYk8=; b=SfjxnvjKqcESv7EZmzIdx4qraJ3yYEH7MxiCS60DgkofKffTl86ljYR0ifDTWtF0k6 +6IKIy4kv8rv2TQVRcPB2JqZ4eSucLl6zeJjG2q//jG+u9UomzyMgHpHZzmo2hYUvdNj oWft8LXB9Ciy/53q5/pDroXqkgncNvchDGE9mqc/uG+BdHpx822kineLpZkK7URDhvCJ nUeSfX+E1qr5QcAZZkTywa7HTpmhpWLfu+MuRkABaVUTdeHnUqESZ/4G2YgqsiGU0PKO ib3ToqAhebHhtojfnSKqtTT8GNi2wOIoRw666sqOq6eL1UjobXKBzSyhSFt2D+v/6drh q4Xw== X-Gm-Message-State: AOAM531//sFsmgxoVZc/pEmu5kws9E32/bfYPRO5chmFvz9iBti9ie5r B0jCViNTiGvr5YRxG0/cA10= X-Google-Smtp-Source: ABdhPJxOg+zsDO8CXREPkxD2RyyTWqP1U2tu/E7PImd8sYoOy8Ih7Z5TrO5K4BEPfDQr+Hq68744+g== X-Received: by 2002:aa7:c30b:: with SMTP id l11mr18876776edq.253.1596519165630; Mon, 03 Aug 2020 22:32:45 -0700 (PDT) Received: from [192.168.1.8] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id n5sm18019916eja.105.2020.08.03.22.32.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Aug 2020 22:32:44 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: Configuring only SSL in postgres docker image From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: Date: Tue, 4 Aug 2020 07:32:40 +0200 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Shankar Bhaskaran X-Mailer: Apple Mail (2.3608.120.23.2.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Shankar, > On 03. Aug, 2020, at 22:01, Shankar Bhaskaran = 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=3Don= -c ssl_key_file=3D/opt/postgresql/server.key -c = ssl_cert_file=3D/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=20 > "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 .=20 >=20 > Could I get some help=20 the postgresql.conf file should have ssl=3Don and of course the key & = certificate file settings. Maybe you should put them there. Cheers, Paul=