pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Susan Joseph <sandajoseph@verizon.net>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: SSL between Primary and Seconday PostgreSQL DBs
Date: Thu, 3 Sep 2020 09:12:12 -0400
Message-ID: <20200903131212.GN29590@tamriel.snowman.net> (raw)
In-Reply-To: <1030654552.2676681.1599138579381@mail.yahoo.com>
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>

Greetings,

* Susan Joseph (sandajoseph@verizon.net) wrote:
> So I made the changes on the secondary to change the sslmode to verify-fullI removed the clientcert=1 in pg_hba.conf and removed any connections other than sslI removed the passfile info from recovery.confand now I am getting this error:
> 2020-09-03 13:01:49.990 UTC [7963] FATAL:  could not connect to the primary server: server certificate for "lc-subca-pg.theforest.sap" does not match 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

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (12+ messages)  latest in thread

Message-ID: <20200903131212.GN29590@tamriel.snowman.net>
Permalink:  ../20200903131212.GN29590@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20200903131212.GN29590@tamriel.snowman.net

 · 

reply

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: sfrost@snowman.net, sandajoseph@verizon.net
  Subject: Re: SSL between Primary and Seconday PostgreSQL DBs
  In-Reply-To: <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> <20200903131212.GN29590@tamriel.snowman.net>

* 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