<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/enabling-tls-in-pxc-without-downtime-rfvq6qcfq" -->

---
title: Enabling TLS in PXC without Downtime | daily.dev
description: A step-by-step procedure explains how to enable TLS encryption for inter-node replication traffic in Percona XtraDB Cluster (PXC) without taking the entire...
canonical: https://daily.dev/posts/enabling-tls-in-pxc-without-downtime-rfvq6qcfq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Enabling TLS in PXC without Downtime | daily.dev
og:description: A step-by-step procedure explains how to enable TLS encryption for inter-node replication traffic in Percona XtraDB Cluster (PXC) without taking the entire...
og:url: https://daily.dev/posts/enabling-tls-in-pxc-without-downtime-rfvq6qcfq
og:image: https://api.daily.dev/og/posts/rfVq6QCfQ.png
og:image:alt: Enabling TLS in PXC without Downtime
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Enabling TLS in PXC without Downtime

**[Planet MySQL](https://daily.dev/sources/planet-mysql)** · 6 min read · 0 upvotes · 0 comments

## Summary

A step-by-step procedure explains how to enable TLS encryption for inter-node replication traffic in Percona XtraDB Cluster (PXC) without taking the entire cluster offline. The approach relies on Galera's socket.dynamic provider option, which lets a node accept both encrypted and plaintext connections during a transition. The rollout requires two rolling restarts across a 3-node cluster: the first enables TLS while still allowing plaintext, and the second enforces TLS-only connections. The post also covers certificate placement, SST behavior, verification via wsrep_provider_options queries and tcpdump, and the reverse procedure for disabling TLS.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.percona.com/blog/enabling-tls-in-pxc-without-downtime>

## Questions this post answers

### How can I enable TLS on a Percona XtraDB Cluster (PXC) without a full cluster restart?

Use the Galera socket.dynamic=YES provider option, available with pxc-encrypt-cluster-traffic starting in PXC 8.0.28 and all PXC 8.4 versions. It lets a node accept both encrypted and plaintext connections during the transition, so nodes can be rolled one at a time instead of restarting the whole cluster simultaneously. Two rolling restarts are needed: one to allow both protocols, another to enforce TLS-only.

_daily.dev surfaces practical database ops guides like this for engineers rolling out TLS across live clusters._

### Why does a PXC node fail to join the cluster after enabling pxc-encrypt-cluster-traffic on just one node?

The restarting node listens on ssl:// while its peers still listen on tcp://, causing an OpenSSL error when the encrypted node tries to reach plaintext peers. This happens because pxc-encrypt-cluster-traffic is not dynamic and normally requires a full cluster restart; without the socket.dynamic workaround, the joining node cannot establish a connection and fails to join.

_engineers debugging TLS handshake failures in clustered databases track fixes like this on daily.dev._

### Which files should I avoid placing in the MySQL data directory when setting up TLS certificates for PXC?

Avoid placing .crt or .key files directly in the data directory since a joiner wipes its data directory before a full State Snapshot Transfer (SST), and only files matching the [sst] cpat pattern survive. The default pattern covers *.pem files, so MySQL-generated certificate names are safe, but other extensions like .crt or .key get deleted during SST.

_database teams securing cluster certificates rely on daily.dev to catch operational gotchas like this one._

## Similar posts on daily.dev

- [Percona Operator for MySQL 1.3.0: autopilot tuning, zero-data-loss async failover, encrypted PITR](https://daily.dev/posts/percona-operator-for-mysql-1-3-0-autopilot-tuning-zero-data-loss-async-failover-encrypted-pitr-tz3wdzo3g) · Planet MySQL · 0 upvotes · 0 comments
- [Rotating Expiring X.509 Certificates in Percona Server for MongoDB with Minimal Service Interruption](https://daily.dev/posts/rotating-expiring-x-509-certificates-in-percona-server-for-mongodb-with-minimal-service-interruption-qgw1atksp) · Percona Blog · 0 upvotes · 0 comments
- [Enforcing TLS and managing certificate rotation for RDS and Amazon Aurora PostgreSQL](https://daily.dev/posts/enforcing-tls-and-managing-certificate-rotation-for-rds-and-amazon-aurora-postgresql-mruniy8os) · AWS Database Blog · 0 upvotes · 0 comments
- [PostgreSQL Disaster Recovery with pgBackRest TLS Transport](https://daily.dev/posts/postgresql-disaster-recovery-with-pgbackrest-tls-transport-iltuvmsnz) · Planet PostgreSQL · 0 upvotes · 0 comments
- [Mutual TLS in SingleStore](https://daily.dev/posts/mutual-tls-in-singlestore-07wanpuno) · SingleStore · 0 upvotes · 0 comments

---

Tags: [#mysql](https://daily.dev/tags/mysql)

[View this post on daily.dev](https://daily.dev/posts/enabling-tls-in-pxc-without-downtime-rfvq6qcfq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Enabling TLS in PXC without Downtime","url":"https://daily.dev/posts/enabling-tls-in-pxc-without-downtime-rfvq6qcfq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/enabling-tls-in-pxc-without-downtime-rfvq6qcfq"},"datePublished":"2026-09-10T00:06:55.223Z","dateModified":"2026-09-10T00:07:23.166Z","description":"A step-by-step procedure explains how to enable TLS encryption for inter-node replication traffic in Percona XtraDB Cluster (PXC) without taking the entire...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/51fb9646b40dba8cfc315ce8e5ff4673?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/51fb9646b40dba8cfc315ce8e5ff4673?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Planet MySQL","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Planet MySQL","logo":"https://media.daily.dev/image/upload/s--UKAtmXTq--/f_auto,q_auto/v1780213421/logos/planet-mysql?_a=BAMAMiWQ0","url":"https://daily.dev/sources/planet-mysql"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/enabling-tls-in-pxc-without-downtime-rfvq6qcfq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"mysql","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Planet MySQL","item":"https://daily.dev/sources/planet-mysql"},{"@type":"ListItem","position":3,"name":"Enabling TLS in PXC without Downtime"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/enabling-tls-in-pxc-without-downtime-rfvq6qcfq#faq","mainEntity":[{"@type":"Question","name":"How can I enable TLS on a Percona XtraDB Cluster (PXC) without a full cluster restart?","acceptedAnswer":{"@type":"Answer","text":"Use the Galera socket.dynamic=YES provider option, available with pxc-encrypt-cluster-traffic starting in PXC 8.0.28 and all PXC 8.4 versions. It lets a node accept both encrypted and plaintext connections during the transition, so nodes can be rolled one at a time instead of restarting the whole cluster simultaneously. Two rolling restarts are needed: one to allow both protocols, another to enforce TLS-only. daily.dev surfaces practical database ops guides like this for engineers rolling out TLS across live clusters."}},{"@type":"Question","name":"Why does a PXC node fail to join the cluster after enabling pxc-encrypt-cluster-traffic on just one node?","acceptedAnswer":{"@type":"Answer","text":"The restarting node listens on ssl:// while its peers still listen on tcp://, causing an OpenSSL error when the encrypted node tries to reach plaintext peers. This happens because pxc-encrypt-cluster-traffic is not dynamic and normally requires a full cluster restart; without the socket.dynamic workaround, the joining node cannot establish a connection and fails to join. engineers debugging TLS handshake failures in clustered databases track fixes like this on daily.dev."}},{"@type":"Question","name":"Which files should I avoid placing in the MySQL data directory when setting up TLS certificates for PXC?","acceptedAnswer":{"@type":"Answer","text":"Avoid placing .crt or .key files directly in the data directory since a joiner wipes its data directory before a full State Snapshot Transfer (SST), and only files matching the [sst] cpat pattern survive. The default pattern covers *.pem files, so MySQL-generated certificate names are safe, but other extensions like .crt or .key get deleted during SST. database teams securing cluster certificates rely on daily.dev to catch operational gotchas like this one."}}]}
```

