wsrep IST/SST : how to enable xbstream with encryption?

We hacked SSL encryption into wsrep_sst_xtrabackup due to its lack of encryption natively. After upgrading today, we’ve noticed support for xbstream. However our cluster (after upgrading) doesn’t use xbstream automatically hence we’re back where we started: unencrypted IST/SST traffic. On a WAN cluster that’s not a good thing. Anybody can point me in the right direction on how to force Percona to use xbstream (more important, encryption) instead of tar?

Encryption can be enabled in SST by adding PXB encryption options to my.cnf under [xtrabackup]. There is currently a bug with PXB encryption - [URL=“”][/URL] - after that is fixed, you can use it with PXC unchanged. In the development version of wsrep_sst_xtrabackup I have added openssl based encryption (which is independent on PXB). Take a look at… for details.

Edit: The linked script is incorrect. Here is the right one [url][/url]