# powershell and powercli installed
#turn on ssh on esxi hosts
#copy CA certs root.cer / rui.crt / rui.key to sddc manager example /tmp/kad01-m01-esx01.kad.local
# servers required in this vcenter, sddc manager and esxi host

#vcenter kad-m01-vc01.kad.local
#esxi kad01-m01-esx01.kad.local
#sdd manager

1. connect-viserver kad-m01-vc01.kad.local
2. Get-VMHost -Name kad01-m01-esx01.kad.local | set-vmhost -State Maintenance
3. Get-VMHost -Name kad01-m01-esx01.kad.local
4. Get-VMHost -Name kad01-m01-esx01.kad.local | set-vmhost -State Disconnect
5. ssh vcf@kad-vcf01.kad.local
6. scp /tmp/kad01-m01-esx01.kad.local/root.cer root@kad01-m01-esx01.kad.local:/etc/vmware/ssl
7. scp /tmp/kad01-m01-esx01.kad.local/rui.crt root@kad01-m01-esx01.kad.local:/etc/vmware/ssl
8. scp /tmp/kad01-m01-esx01.kad.local/rui.key root@kad01-m01-esx01.kad.local:/etc/vmware/ssl
9. ssh root@kad01-m01-esx01.kad.local
10. cd /etc/vmware/ssl
11. cat root.cer >> /etc/vmware/ssl/castore.pem
12. /sbin/auto-backup.sh
13. /etc/init.d/hostd restart && /etc/init.d/vpxa restart
14. reboot -f

By Kader