VAST Cluster supports securing of the replication connection with mutual TLS (mTLS) encryption. With mTLS, each replication peer authenticates the other peer, and all traffic between the peers gets encrypted.
mTLS encryption requires that an mTLS certificate installed on each of the peer clusters and that each peer has secure mode enabled.
To configure mTLS encryption:
Creating mTLS Certificates for Replication
Create a new password-protected CA key and a root certificate to be used by the replication peers:
openssl genrsa -aes256 -out ca.key 4096 openssl req -new -x509 -days 3650 -key ca.key -out ca.crt -subj '/CN=Replication-Root-CA'
Two files will be created:
ca.keythat contains the password-protected CA key,ca.crtthat contains the root certificate.
Verify the certificate details using the command:
openssl x509 -in ca.crt -noout -text
Create a new key/certificate pair per replication peer, and sign the certificate using the password-protected CA key created above:
Note
It is recommended to create one key/certificate pair per cluster.
CLUSTER=myclustername openssl genrsa -out ${CLUSTER}.key 2048 openssl req -new -key ${CLUSTER}.key -out ${CLUSTER}.csr -nodes -subj "/CN=Replication-$CLUSTER" openssl x509 -req -CA ca.crt -CAkey ca.key -CAcreateserial -in ${CLUSTER}.csr -out ${CLUSTER}.crt -days 1095Where myclustername is a hostname or cluster name used to identify the cluster in replication.
Three files will be created:
myclustername.keythat contains the cluster's key,myclustername.crtthat contains the cluster's certificate,myclustername.csr, which is only used during the creation process and can be deleted.
Verify the cluster certificate using the command:
openssl x509 -in myclustername.crt -noout -text
The cluster certificate details must include this string:
Issuer: CN=Replication-Root-CA
Install mTLS Certificates on each Participating VAST Cluster
Installing mTLS Certificates from the VAST Web UI
From the left navigation menu, select Settings and then Certificates.
From the Certificate for dropdown, select replication.
Either paste the certificate file contents into the Certificate field or use the Upload button to upload the file, and paste or upload the key file content into the Key field and the root Certificate file contents in the Root Certificate field.
When pasting the file content, include the BEGIN CERTIFICATE / BEGIN PRIVATE KEY and END CERTIFICATE / END PRIVATE KEY lines, like this:
-----BEGIN CERTIFICATE----- ... -----END CERTIFICATE-----
If the private key is password protected, enter the password in the Key Password field.
Click Update.
Installing mTLS Certificates from the VAST CLI
To install the certificates using the VAST CLI, use the cluster modify command with the following parameters: --cluster-certificate, --cluster-private-key --root-certificate.