# SSL question in Cluster configuration

**URL:** <https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922>\
**Category:** Percona XtraDB Cluster\
**Created:** [June 17, 2021, 4:47pm UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922 "2021-06-17T16:47:12Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![Naveen](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Naveen](https://forums.percona.com/u/Naveen)\
**Post date:** [June 28, 2021, 5:03pm UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/21 "2021-06-28T17:03:58Z")

</div>

@matthewb

 ![sslenc](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/7/77f4b627466bf75d6846d8915f417b26cddb772f.png)

My question is i have not provided any client ssl certificates while connecting to mysql server.But it got connected and ssl is enabled.How come this is possible?

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [June 28, 2021, 6:39pm UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/22 "2021-06-28T18:39:52Z")

</div>

@Naveen

> **[SSL Connections in MySQL 5.7 - Percona Database Performance Blog](https://www.percona.com/blog/2017/06/27/ssl-connections-in-mysql-5-7/)**
>
> This blog post looks at SSL connections and how they work in MySQL 5.7.

The way SSL/TLS works in 5.7 and 8.0 changed. In summary, there is a TLS negotiation much like how web browsers work, so you no longer need to have the certificates on each machine unless you want to fully verify the X509 path within the certificate.

---

<div class="post-metadata">

**Author:** ![Naveen](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Naveen](https://forums.percona.com/u/Naveen)\
**Post date:** [July 5, 2021, 10:37am UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/23 "2021-07-05T10:37:26Z")

</div>

hii @matthewb thanks for ur answers and can u say how to connect to percona xtradb cluster nodes from spring boot application with SSL

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [July 6, 2021, 12:23am UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/24 "2021-07-06T00:23:43Z")

</div>

I don’t know what spring boot is, but in general, copy the ca.pem and the client key and cert files from /var/lib/mysql to the application server and use those when you make the connection.

---

<div class="post-metadata">

**Author:** ![Naveen](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Naveen](https://forums.percona.com/u/Naveen)\
**Post date:** [July 6, 2021, 10:00am UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/25 "2021-07-06T10:00:25Z")

</div>

Thanks @matthewb for your reply.Can u help me in one thing .I want to enable frontend encryption to proxySQL.i enabled it .

 ![proxy1e](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/6/61fcf993be9aae1d19d3c253c4739a3c0b06a9e1.jpeg)  
And from remote machine iam trying to connect to proxysql

 ![proxy2e](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/3/3c5924ce99069a007614e7f9cce4676487da0188.jpeg)

Can u tell me the command or any any source on how to connect to proxysql with ssl

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [July 6, 2021, 3:47pm UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/26 "2021-07-06T15:47:59Z")

</div>

You need to load SSL certificates into proxysql and configure the proxysql variables. ProxySQL can use different certificates for frontend and backend. Frontend must be explicitly configured.

---

<div class="post-metadata">

**Author:** ![Naveen](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Naveen](https://forums.percona.com/u/Naveen)\
**Post date:** [July 29, 2021, 8:58am UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/27 "2021-07-29T08:58:58Z")

</div>

Hii @matthewb iam facing one issue in percona xtradb cluster.  
I made a cluster with 3 nodes ,all nodes are synced and working fine.  
but in logs i can see

 ![my](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/e/e538a428de9a79ef8b25904df8f5563ad5862953.png)  
After some time one of my node is getting disconnected from cluster.  
Can u help me to solve this.  
Note: iam using proxySql as load balancer.

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [July 29, 2021, 2:51pm UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/28 "2021-07-29T14:51:50Z")

</div>

A quick google search found this: [Truncate long connection attributes · Issue #3501 · sysown/proxysql · GitHub](https://github.com/sysown/proxysql/issues/3501)  
You may need to upgrade ProxySQL to the absolute latest version.

---

<div class="post-metadata">

**Author:** ![Naveen](https://avatars.discourse-cdn.com/v4/letter/n/f07891/32.png) [@Naveen](https://forums.percona.com/u/Naveen)\
**Post date:** [August 4, 2021, 1:01pm UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/29 "2021-08-04T13:01:38Z")

</div>

Hii @matthewb thanks for ur reply .Now actually i shifted to HA Proxy and offed the ProxySql.But still in mysql logs i can see the same error.[connection attributes of length 571 were truncated(77 bytes lost) for connection …]  
Can anyone help me in solving this?

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [August 4, 2021, 2:23pm UTC](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922/30 "2021-08-04T14:23:28Z")

</div>

HAProxy is not as feature-rich/powerful as ProxySQL and I recommend you switch back to ProxySQL 2.0. I use ProxySQL 2.\* along with PXC 8.\* in our training classes, fully SSL everywhere, with no issues.

[Previous page](https://forums.percona.com/t/ssl-question-in-cluster-configuration/10922.md?page=1)
