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 1kDp2H-0002vJ-A7 for pgsql-general@arkaria.postgresql.org; Thu, 03 Sep 2020 13:12:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kDp2G-00066p-8K for pgsql-general@arkaria.postgresql.org; Thu, 03 Sep 2020 13:12:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kDp2G-00066i-0B for pgsql-general@lists.postgresql.org; Thu, 03 Sep 2020 13:12:16 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kDp2D-00071k-AA for pgsql-general@postgresql.org; Thu, 03 Sep 2020 13:12:15 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6ECA45F79F; Thu, 3 Sep 2020 09:12:12 -0400 (EDT) Date: Thu, 3 Sep 2020 09:12:12 -0400 From: Stephen Frost To: Susan Joseph Cc: "pgsql-general@postgresql.org" Subject: Re: SSL between Primary and Seconday PostgreSQL DBs Message-ID: <20200903131212.GN29590@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> <1030654552.2676681.1599138579381@mail.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="G7RBBpqLT/d7TtnV" Content-Disposition: inline In-Reply-To: <1030654552.2676681.1599138579381@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 --G7RBBpqLT/d7TtnV Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Susan Joseph (sandajoseph@verizon.net) wrote: > So I made the changes on the secondary to change the sslmode to verify-fu= llI removed the clientcert=3D1 in pg_hba.conf and removed any connections o= ther than sslI removed the passfile info from recovery.confand now I am get= ting this error: > 2020-09-03 13:01:49.990 UTC [7963] FATAL:=A0 could not connect to the pri= mary server: server certificate for "lc-subca-pg.theforest.sap" does not ma= tch host name "192.168.1.142" Yes, as I explained, because of exactly the issue that the host you've told your secondary to connect to (looks like 192.168.1.142) doesn't match the certificate presented by the primary (which looks to be "lc-subca-pg.theforest.sap"). The answer is to make those two match. Thanks, Stephen --G7RBBpqLT/d7TtnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJfUOusAAoJEO1sijiDR2RVeR8QAI3L6PVBT1yZ9qU78wCZoW3i 0+J7/+Pmwn9c73KVQu77bsXlM3+ykJgCK1i7KFQv1mbdl680P+Clj58v1aVTnA2A YsX/jo6w3Aiv/5V7BdXqOBPnmyXCSFEx8YqzzLYFtfIQrHxvJpnz0FxfsWxNmNLu USr19wRRQYuIDo2FHZXYFJqHFZzJDWhJEwjxysMZyGXspuC8jcFvfaBXsrVOHsDm 6ittxLh4ERQzwJuHfZKRTVGXgLVbeRpi2MoCxuhXgCO0snYXCCSrzuKzEJIkl9TV pkMzCcHeyTNpU568il3uuHKduZK6bC80vauQnsYCrt34VZ0J1NGtA4EhCR7wBD+4 H7VkLErUKZ59KVs+WXHTB5fpxtw2W3NM+OLB1T5K05HWiBrDgk+M+ztmVoYtA/FD OEOkfr/DXD3n+Qh9qCrQwKI53niA35ChIAMTaW0D9BldZFm8ukqPkaGxkRPH6zjU K57KZhcBrqEqUuBV9NCZNdiD6zciuSzhpyrCILbmkyFo25S42K1Az7/WPOihOunu cs4T3O7Ff1NOhdZcHAXtenTZEGLG/a4p/tzgX+1ZdzNs4q9jztG1SsNkHlHUeeX+ 9T2xs0p1qbfH85M5oyqWun83ijMia/uKg4JtDVQUjgGgUqBHKaf+ML3c8LVEP0ib V0+p0VHirM2r0q5Jr0GD =pJ9Q -----END PGP SIGNATURE----- --G7RBBpqLT/d7TtnV--