Instead of relying on auto-generated system certificates, use a manually configured Public Key Infrastructure (PKI) to ensure certificates do not change unexpectedly on service restarts.
The code is associated with a specific, long-standing bug in MySQL regarding secure remote connections. The Issue: SSL/TLS Connection Failures 100688
MySQL Bug #100688 identifies a problem where clients are unable to connect to a remote MySQL server when using certain public or CA-signed certificates. This typically occurs because the system fails to correctly validate the certificate chain when the server and client reside on different remote hosts. This typically occurs because the system fails to
The issue is often triggered by how systemd services interact with automatically generated certificate files. When the service restarts, it may recreate or misconfigure the paths to these certificates, leading to a "handshake failure" or validation error. 100688