DAP - Postgres Replication Mutual TLS (mTLS) Certificate Mismatch
101
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:02 PM
Symptom
The DAP cluster will not start. Master logs contain errors similar to:
-
<134>1 2020-03-12T17:56:11.000+00:00 a0a4a6d3bc3b postgres 5337 - [meta sequenceId="8"] [5-1] LOG: could not accept SSL connection: tlsv1 alert decrypt error
Standbys contain messages similar to:
-
<131>1 2020-03-12T18:00:16.000+00:00 6cbc70bb49c4 postgres 25766 - [meta sequenceId="1"] [3-1] FATAL: could not connect to the primary server: SSL error: data too large for modulus
Environment
11.1;11.2;11.3;11.4;11.5;11.6;11.7;12.0;20.7;21.1 DAP 11 or above
Cause
This may be caused by Followers or Standbys configured with stale or invalid certificates, for example from an old seed file, that no longer correspond to the certificates on the DAP Master.
For example, when re-creating a DAP Master cluster and re-using the host DNS names, latent Followers from previous cluster will attempt to re-connect to the new Master using old certificates, generating this message.
Resolution
Recreate and re-seed any Standbys or Followers so that they use the correct certificates for the new DAP Master.