Vcert — Tool Vmware __hot__
# First, replace the machine cert vcert replace vcenter \ --cert-file new-vcenter.crt \ --key-file new-vcenter.key \ --chain-file ca-chain.pem
# Replace certificate via esxcli (remote) Invoke-VMScript -VMHost $_ -ScriptText "esxcli system ssl certificate set --filename=/tmp/new.crt" ` -GuestUser root -GuestPassword $password vcert tool vmware
