You can use PowerCLI to add a root certificate or certificate chain to the trusted root store of vCenter Server and to the certificate stores of the connected ESXi hosts.
Procedure
- (Optional) List the trusted root certificates on your vCenter Server system and the connected ESXi hosts.
- Create a variable with the root certificate or certificate chain you want to add.
$trustedCertChain = Get-Content "C:\Users\jdoe\Downloads\ca-chain.cert.pem" -Raw
- Add the root certificate or certificate chain to vCenter Server and to the connected ESXi hosts
Add-VITrustedCertificate -PemCertificateOrChain $trustedCertChain
- (Optional) Verify that your new root certificate or certificate chain has been added to the trusted certificate stores.