Note: By default, strict certificate validation is not enabled.
To enable strict certificate validation follow these steps to configure VCSA with the certificate for HTTPS / FTPS File-Based Backup or Restore features.
Backup
- Connect to the vCenter Server Appliance using SSH with root credentials
- Backup the /etc/applmgmt/appliance/appliance.conf file.
root@vcsa1 [ ~ ]# cp /etc/applmgmt/appliance/appliance.conf /etc/applmgmt/appliance/appliance.conf.backup
root@vcsa1 [ ~ ]# cd /etc/applmgmt/appliance
root@vcsa1 [ /etc/applmgmt/appliance ]# ls -lh
total 60K
-rwxr-xr-x 1 root root 841 Oct 12 09:45 appliance.conf
-rwxr-xr-x 1 root root 841 Feb 24 14:30 appliance.conf.backup
- Open the /etc/applmgmt/appliance/appliance.conf file:
vi /etc/applmgmt/appliance/appliance.conf
- Search for the key validateCerts
- if the key exists, change it to "validateCerts": true
- If the key does not exist, add "validateCerts": true under the backupRestore section.
- Restart the appliance management service with these commands:
Caution: Running these commands will cause vCenter Server downtime.
service-control --stop applmgmt
service-control --start applmgmt
- Add the CA cert or SSH host key thumb print of the target server depending on the transfer method:
- For FTPS or HTTPS transfers, copy the CA cert to /etc/applmgmt/appliance/br_servercert.crt on the VCSA.
- For SCP or SFTP based backup restore, copy the ssh host key thumb print of the backup server to /etc/applmgmt/appliance/br_known_hosts on the VCSA.
- Entries should be in: IP,FQDN algorithm Key format. You may have both IP and FQDN on the same line or have two line entries one for IP and one for FQDN.
- Start the backup of vCenter
Restore
- Begin a restore operation stopping at Stage 1.
- Open the /etc/applmgmt/appliance/appliance.conf file with a text editor
- Search for the key validateCerts
- if the key exists, change it to "validateCerts": true
- If the key does not exist, add "validateCerts": true under the backupRestore section.
- Restart the appliance management service with these commands:
Caution: Running these commands will cause vCenter Server downtime.
service-control --stop applmgmt
service-control --start applmgmt
- Add the CA cert or SSH host key thumb print depending on the transfer method:
- For FTPS or HTTPS transfers, copy the CA cert to /etc/applmgmt/appliance/br_servercert.crt on the VCSA.
- For SCP or SFTP based backup restore, copy the ssh host key thumb print of the backup server to /etc/applmgmt/appliance/br_known_hosts on the VCSA.
- Copy the ssh host key thumb print of the backup server to /etc/applmgmt/appliance/br_known_hosts on the VCSA by running command: $ ssh -q -p 22 -i /root/.ssh/id_rsa -o UserKnownHostsFile=/root/.ssh/br_temp_known_hosts ftpuser@10.199.67.23 echo ~
- Now copy this file to the directory as shown : $ cp /root/.ssh/br_temp_known_hosts /etc/applmgmt/appliance/br_known_hosts
- Remove the temp_known host file :$ rm /root/.ssh/br_temp_known_hosts /
- Start the Restore operation with the VAMI UI on port 5480: vCenter FQDN or IP:5480 or alternatively using the command appliancesh