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 1kDoyD-0002j2-6C for pgsql-general@arkaria.postgresql.org; Thu, 03 Sep 2020 13:08:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kDoyA-0007tv-OP for pgsql-general@arkaria.postgresql.org; Thu, 03 Sep 2020 13:08:02 +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 1kDoyA-0007to-C5 for pgsql-general@lists.postgresql.org; Thu, 03 Sep 2020 13:08:02 +0000 Received: from tamriel.snowman.net ([2001:470:e38f::11]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kDoy3-0007lA-Gt for pgsql-general@postgresql.org; Thu, 03 Sep 2020 13:08:00 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id C4BA95F79F; Thu, 3 Sep 2020 09:07:54 -0400 (EDT) Date: Thu, 3 Sep 2020 09:07:54 -0400 From: Stephen Frost To: Susan Joseph Cc: "pgsql-general@postgresql.org" Subject: Re: SSL between Primary and Seconday PostgreSQL DBs Message-ID: <20200903130754.GM29590@tamriel.snowman.net> References: <976526972.6642745.1598278223530.ref@mail.yahoo.com> <976526972.6642745.1598278223530@mail.yahoo.com> <20200903122856.GL29590@tamriel.snowman.net> <1878379566.2669355.1599137708587@mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="FoXUx/rQLkDlEjQg" Content-Disposition: inline In-Reply-To: <1878379566.2669355.1599137708587@mail.yahoo.com> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --FoXUx/rQLkDlEjQg Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, We really prefer it if you don't top-post on these lists but instead reply in-line, as I did. * Susan Joseph (sandajoseph@verizon.net) wrote: > This is great, thanks.=A0 I have not heard of verify-full but I will try = that and let you know if I have issues. > So I will remove the passfile info for recovery.conf.=A0 It was there bec= ause I first set it up using passwords to make sure it was working and then= moved to SSL so if not needed I can remove it. > So if I don't put clientcert=3D1 do I just leave it at cert or should it = be set to something else? Leaving it as 'cert' should be sufficient. The clientcert option is really intended to be used with the *other* auth methods, to provide a "check the password *and* the client certificate" option. > I will try and drop the other connection lines in the pg_hba.conf but I t= hought the last time I did that it through an error.=A0 Let me try it again= and see if it works. If that results in an error then it's possible you have an error in your configuration and you aren't actually using SSL for this connection. > So are you saying that "sslmode=3Dverify-ca" doesn't actually verify that= the certificate is from a CA it trusts?=A0=20 verify-ca checks that the certificate is from a trusted CA, but it does *not* make sure that the common name in that certificate matches the name of the system that is being connected to. In other words, if you configure your secondary to connect to 'server-a.mydomain.com', but the certificate installed on the server has a common name (CN) of 'server-x.mydomain.com', the connection will still be allowed, as long as the certificate is signed by a trusted CA. That's not good. > So my big question is:=A0 am I really adding more security by turning on = SSL or is it just more work for the DBA?=A0=20 I'm not sure if this is a serious question or not. If you want to mitigate attack vectors which arise from data-in-transit then you absolutely need to be using strong authentication and encryption when connecting. If your profile is such that you're not concerned about network-based attack vectors, then perhaps it's not needed. Thanks, Stephen --FoXUx/rQLkDlEjQg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfUOqqAAoJEO1sijiDR2RVl04P/1ljJRkO8FwGNm5nBvuXa+R+ 98K4FFG89odkfTe5Q9rc7eemAoK1plmMcjitrG9hEZsnt+6mJmiNuKQDaWqjdpbV yWkVvok4wt5H7jbixUo8Br5yUwQPkf2xE7gDdFhBVo5uNg4NDD1fqbGJV+z10MZ1 8aIbrLVMys49jwRGDtZ7lYV1Q0BC2Hyk7ukn/00fYj/Ua+LIO2hqnel6MTPANx3b 9c0y1b/stHn3U7nRSnVHAxKRosAEiHyjwnjdK+0CaMZwWe3GRbGoRgHqOiy1jz9b H/SuuhaIloIqnUqzFIRu4q4smxeX6qi4jV9MVMJqEZz2iQrgjPZAjbGDfT2aDEEZ Jmg4ySRpESvUE0Guj8WfW45gZd50HQDf36I18N1Q7sItU2ORIy9LyqFDvQ1NPmec Rwhcvc0PjF5lIuVWNqCaGdaKCbfoEUPn490gpovYKeIuWyQ5fvYcNYagt53RflZF lEcYyp/XRLF3pnM3vnQccHn6g7YxUlGEIsf+Dy1IbEWYV6xXvBA8/9fmYzq3pEt8 RyaGNsKg7henkTlz3WxetJvjRPB1nWOYgD3nj/mUq64yu09OL4Xh17q4/hI8YE9n y/Zd+fXrvCG+jYP/N1RtuNbJrbzrfIq4MsNEPOp2+CSJzx2G8yCS7Z46r96D65zX Tuqmqs+Ap8m7dhxLofXp =JwRi -----END PGP SIGNATURE----- --FoXUx/rQLkDlEjQg--